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; }