Exemple #1
0
 public virtual void Awake()
 {
     IGGString.Init();
     DontDestroyOnLoad(gameObject);
     //Application.targetFrameRate = 30;
     SceneM.LinkScheduler(gameObject);
     EventCenter.Init();
     NetCache.Init();
     protobufM.Init();
 }
Exemple #2
0
        private void InitManager()
        {
            Logger = new LoggerManager();
            Debug  = new DebugManager();
            Event  = new EventCenter();
            Time   = new TimeManager();
            Pool   = new PoolManager();
            FSM    = new FsmManager();
            Table  = new TableDataManager();
            Scene  = new SceneLoaderManager();
            Sound  = new SoundManager();
            UI     = UIManager.Instance;

            //IL
            UnityEngine.GameObject il = new UnityEngine.GameObject();
            DontDestroyOnLoad(il);
            IL = il.AddComponent <ILRuntimeMgr>();

            Localization = new LocalizationMgr();
            Res          = new ResManager();
            LocalCache   = new LocalCacheMgr();
            Logger.Init();
            Event.Init();
            Time.Init();
            Pool.Init();
            Table.Init();
            Scene.Init();
            Debug.Init();
            Sound.Init();
            FSM.Init();
            IL.Init();
            Localization.Init();
            Res.Init();
            LocalCache.Init();
            Debug.Log("GameEntry Init");
        }