| | |
| | | return; |
| | | } |
| | | |
| | | cellContainer = await UIUtility.CreateWidget("SkillBaseCell", "Container_SkillCell"); |
| | | var inst = await UIUtility.CreateWidget("SkillBaseCell", "Container_SkillCell"); |
| | | |
| | | 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) |
| | | { |
| | | cellContainer.transform.SetParentEx(this.transform, Vector3.zero, Quaternion.identity, Vector3.one); |
| | | cellContainer.transform.SetAsFirstSibling(); |
| | | } |