Beispiel #1
0
        protected override void OnReleaseRes()
        {
            if (Asset is GameObject)
            {
            }
            else
            {
                Resources.UnloadAsset(Asset);
            }

            Asset = null;
            mResLoader.ReleaseAll();
            mResLoader = null;
            ResMgr.Instance.SharedLoadedReses.Remove(this);
        }
Beispiel #2
0
 // Update is called once per frame
 void OnDestroy()
 {
     mResLoader.ReleaseAll();
     mResLoader = null;
 }