Beispiel #1
0
        override protected void DisposeNoGcCode()
        {
            DLog.LogWarning("准备释放AppCore.");
            System.Collections.Generic.List <string> tlist = new System.Collections.Generic.List <string>(mGameMap.Keys);
            foreach (string tkey in tlist)
            {
                DestroyGame(tkey);
            }

            System.Collections.Generic.List <string> tpublicmonos = new System.Collections.Generic.List <string>(mPublicMonoMap.Keys);
            foreach (string tkey in tlist)
            {
                MonoManagerBase tmono = mPublicMonoMap[tkey];
                mPublicMonoMap.Remove(tkey);
                tmono.DestroyManager();
            }
            base.DisposeNoGcCode();
        }
Beispiel #2
0
 public static void AddPublicMono(string _key, MonoManagerBase _mono)
 {
     App.mPublicMonoMap.Add(_key, _mono);
 }