Beispiel #1
0
 public void Init()
 {
     try
     {
         this.luaMgr   = new LuaScriptMgr();
         this.resMgr   = new ResourceMgr();
         this.netLogic = new NetLogic();
         this.netLogic.Init();
         Directory.CreateDirectory(Pandora.Instance.GetCachePath());
         Directory.CreateDirectory(Pandora.Instance.GetImgPath());
         Directory.CreateDirectory(Pandora.Instance.GetCookiePath());
         Directory.CreateDirectory(Pandora.Instance.GetLogPath());
         Directory.CreateDirectory(Pandora.Instance.GetTempPath());
     }
     catch (Exception ex)
     {
         Logger.ERROR(ex.get_StackTrace());
     }
 }
        public static GameObject GetPanel(string panelName)
        {
            ResourceMgr resourceMgr = Pandora.Instance.GetResourceMgr();

            return(resourceMgr.GetPanel(panelName));
        }
        public static int AssembleFont(string panelName, string jsonFontTable)
        {
            ResourceMgr resourceMgr = Pandora.Instance.GetResourceMgr();

            return(resourceMgr.AssembleFont(panelName, jsonFontTable));
        }