| | |
| | | |
| | | if (cellContainer == null) |
| | | { |
| | | cellContainer = await UIUtility.CreateWidget("BattleBuffCell", "Container_BuffCell"); |
| | | var inst = await UIUtility.CreateWidget("BattleBuffCell", "Container_BuffCell"); |
| | | if (this == null) |
| | | { |
| | | if (null != cellContainer) |
| | | { |
| | | DestroyImmediate(cellContainer); |
| | | } |
| | | if (null != inst) DestroyImmediate(inst); |
| | | return; |
| | | } |
| | | |
| | | if (cellContainer != null) |
| | | { |
| | | DestroyImmediate(inst); |
| | | return; |
| | | } |
| | | cellContainer = inst; |
| | | |
| | | if (cellContainer != null) |
| | | { |
| | |
| | | return; |
| | | } |
| | | await LoadPrefab(); //存在被卸载的可能,重新加载 |
| | | if (this == null) return; |
| | | var config = SkillConfig.Get((int)buffData.SkillID); |
| | | if (config == null) |
| | | { |