Ejemplo n.º 1
0
 public void Init(bool isProductEnvironment, string rootName = "")
 {
     if (!this._isInitialized)
     {
         this._isInitialized = true;
         this._rootName      = rootName;
         PandoraSettings.IsProductEnvironment = isProductEnvironment;
         PandoraSettings.ReadEnvironmentSetting();
         this._userData = new UserData();
         LocalDirectoryHelper.Initialize();
         this.CreatePandoraGameObject();
         this.AddLogHook();
         CacheManager.Initialize();
         AssetManager.Initialize();
         PanelManager.Initialize();
         TextPartner.GetFont = new Func <string, Font>(this.GetFont);
         Logger.LogLevel     = PandoraSettings.DEFAULT_LOG_LEVEL;
         Logger.LogInfo("<color=#0000ff>Pandora Init " + this.GetSystemInfo() + "</color>");
     }
 }