Commit 3a0bd98
committed
fix(ui): 修复 OnClose 中潜在的空引用异常
在 OnClose 方法中增加 this 和 gameObject 的空值检查,
避免在对象已销毁时触发 NullReferenceException。1 parent 4ff9dc9 commit 3a0bd98
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
703 | 710 | | |
704 | 711 | | |
705 | 712 | | |
| |||
0 commit comments