Example #1
0
 public void Init(ResLoadComponent resLoadComponent)
 {
     base.Init();
     resLoadComponentPlugin = new ResLoadComponentPlugin(resLoadComponent);
     this.AddListener(GetGameEntity().eventDispatchers, ECSEventNameConst.OnAllAssetsLoadDone,
                      OnAllAssetsLoadDone);
 }
Example #2
0
        protected override void _Destroy()
        {
            base._Destroy();
            resLoadComponentPlugin.Destroy();
            DestroyGameObject();


            resLoadComponentPlugin = null;

            parentTransform        = null;
            gameObject             = null;
            isNotDestroyGameObject = false;
            prefab         = null;
            _prefabPath    = null;
            prefabAssetCat = null;
            isLoadDone     = false;
            isHide         = false;
        }