Exemplo n.º 1
0
        void Awake()
        {
            DontDestroyOnLoad(this);

            UnityUtils.ShowCursor(!HideCursor);

            if (ForceFPS)
            {
                QualitySettings.vSyncCount  = 0;
                Application.targetFrameRate = GameFPS;
            }

            if (!string.IsNullOrEmpty(sceneName) && !InEditor)
            {
                SceneManager.LoadScene(sceneName, LoadSceneMode.Additive);
            }
        }
Exemplo n.º 2
0
        void Awake()
        {
            DontDestroyOnLoad(this);

            UnityUtils.ShowCursor(!HideCursor);

            QualitySettings.vSyncCount  = 0;
            Application.targetFrameRate = ForceFPS ? GameFPS : -1;

            if (sceneNames != null && !InEditor)
            {
                foreach (var scene in sceneNames)
                {
                    SceneManager.LoadScene(scene, LoadSceneMode.Additive);
                }
            }
        }