yyl
2026-03-04 bc1cb6da854cb2e9144f10ed55330a537ecdca16
Main/System/HeroUI/HeroSelectBehaviour.cs
@@ -189,9 +189,13 @@
        }
    }
    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>();
    }