示例#1
0
 IEnumerator InitSingletons(params Type[] types)
 {
     foreach (Type type in types)
     {
         try
         {
             mSingletons.Add(Singletons.Add(type));
         }
         catch (Exception e)
         {
             DestroySingletons();
             GameLog.Exception(e);
         }
     }
     yield break;
 }