コード例 #1
0
ファイル: Central.cs プロジェクト: rudybear/moai-ide
 public static void InitializeSystem(IRootManager manager, IPlatform platform)
 {
     if (!Central.m_LogInitialized)
         throw new InvalidOperationException("Moai central management system does not have logging infrastructure initialized before starting main application execution.");
     if (Central.m_Initialized)
         throw new InvalidOperationException("Moai central management system can not be initialized twice.");
     Central.m_Initialized = true;
     Central.Manager = manager;
     Central.Platform = platform;
 }
コード例 #2
0
 public static void InitializeSystem(IRootManager manager, IPlatform platform)
 {
     if (!Central.m_LogInitialized)
     {
         throw new InvalidOperationException("Moai central management system does not have logging infrastructure initialized before starting main application execution.");
     }
     if (Central.m_Initialized)
     {
         throw new InvalidOperationException("Moai central management system can not be initialized twice.");
     }
     Central.m_Initialized = true;
     Central.Manager       = manager;
     Central.Platform      = platform;
 }