| | |
| | | } |
| | | } |
| | | |
| | | public static HeroSelectBehaviour Create(Transform heroSelectBehaviour) |
| | | public static async UniTask<HeroSelectBehaviour> Create(Transform heroSelectBehaviour) |
| | | { |
| | | var instanceGO = UIUtility.CreateWidget("HeroSelectBehaviour", "HeroSelectBehaviour"); |
| | | var instanceGO = await UIUtility.CreateWidget("HeroSelectBehaviour", "HeroSelectBehaviour"); |
| | | if (null == instanceGO) |
| | | { |
| | | return null; |
| | | } |
| | | instanceGO.transform.SetParentEx(heroSelectBehaviour, Vector3.zero, Quaternion.identity, Vector3.one); |
| | | return instanceGO.GetComponent<HeroSelectBehaviour>(); |
| | | } |