コード例 #1
0
    void UpdateRight()
    {
        UIASSETS_ID uiId = GlobalValue.GetMoreActivityID(crtType_);

        if (uiId != (UIASSETS_ID)0)
        {
            loadingSub_ = true;
            UIAssetMgr.LoadUI(uiId, (AssetBundle Asset, ParamData Param) =>
            {
                if (rightContent_ == null)
                {
                    UIAssetMgr.DeleteAsset(uiId, true);
                    return;
                }

                GameObject subUi = (GameObject)GameObject.Instantiate(Asset.mainAsset) as GameObject;
                Asset.Unload(false);
                subUi.transform.parent        = rightContent_;
                subUi.transform.localScale    = Vector3.one;
                subUi.transform.localPosition = Vector3.zero;
                UIManager.Instance.AdjustUIDepth(subUi.transform, false);
                loadingSub_ = false;
            }, null);
        }
    }