yyl
2026-03-26 1ab047b5fdd933c38ba0519ec2e83a44512ea8d7
Main/System/Battle/UIComp/MinggeBuffCell.cs
@@ -47,7 +47,7 @@
    void Awake()
    {
        LoadPrefab();
        LoadPrefab().Forget();
    }
    GameObject cellContainer;
@@ -66,15 +66,20 @@
        if (cellContainer == null)
        {
            cellContainer = await UIUtility.CreateWidget("MinggeBuffCell", "Container_BuffCell");
            var inst = await UIUtility.CreateWidget("MinggeBuffCell", "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)
            {
                cellContainer.transform.SetParentEx(this.transform, Vector3.zero, Quaternion.identity, Vector3.one);