void Awake()
    {
        _instance = this;
        DontDestroyOnLoad(gameObject);
        Screen.sleepTimeout         = SleepTimeout.NeverSleep;
        Application.targetFrameRate = 30;

        ResourceManager.Instance.Init();
        ILRuntimeManager.Init();
        ResourceManager.Instance.AfterInit();
        SceneLoader.LoadSceneAdditive("UI");
    }
Exemple #2
0
    void Awake()
    {
        Debugger.Init(Application.persistentDataPath);

        _instance                   = this;
        Screen.sleepTimeout         = SleepTimeout.NeverSleep;
        Application.targetFrameRate = 30;

        ResourceManager.Instance.Init();
        ILRuntimeManager.Init();
        SceneLoader.LoadSceneAdditive("UI");
        if (BuildSettings.Debug)
        {
            GameObject go = new GameObject("GameStates");
            go.AddComponent <GameStates>();
        }
    }