Exemple #1
0
 public void InitScript()
 {
     if (mInited)
     {
         return;
     }
     if (string.IsNullOrEmpty(APPNAME))
     {
         return;
     }
     mInited         = true;
     gameObject.name = "Root-" + APPNAME;
     mCore           = AppCore.CreatGameCore(APPNAME);
     mCore.DontDestroyOnLoad(gameObject);
     if (!string.IsNullOrEmpty(ScriptFileName))
     {
         LoadScriptFormFile(ScriptFileName);
     }
 }