Exemplo n.º 1
0
 void Start()
 {
     FrameMgr.GetInstance();
     TimerMgr.GetInstance();
     PathMgr.GetInstance();
     ConfigMgr.GetInstance();
     AssetMgr.GetInstance();
     UIMgr.GetInstance();
     SoundMgr.GetInstance();
     LoadSceneMgr.LoadSence("test");
 }
Exemplo n.º 2
0
 private static void Init()
 {
     if (DicLocalization.Count == 0)
     {
         AssetMgr.GetInstance().LoadAsset(PathMgr.GetInstance().GetPath(Define.DataType.Localization), false, false, () => {
             string[] loc = AssetMgr.GetInstance().GetAsset().ToString().Split(new[] { '\n' }, System.StringSplitOptions.RemoveEmptyEntries);
             for (int i = 0; i < loc.Length; i++)
             {
                 loc[i] = loc[i].Replace("\r", "");
             }
             LanguageList = loc[0].Split(',');
             for (int i = 1; i < loc.Length; i++)
             {
                 string[] data = loc[i].Split(',');
                 DicLocalization.Add(data[0], data);
             }
         });
     }
 }