Exemplo n.º 1
0
 public static bool InitFramework()
 {
     lock (mutex)
     {
         if (_framework == null)
         {
             _framework = new SFrameWork();
             return(true);
         }
         else
         {
             SDebug.LogWarning("the Framework has been inited");
             return(false);
         }
     }
 }
Exemplo n.º 2
0
 public static void UninitFramework()
 {
     _framework.OnDestroy();
     _framework = null;
 }