Esempio n. 1
0
        public static void setScene(SceneBase scene, bool isGameLevel)
        {
            SceneManager.isGameLevel = isGameLevel;

            if (current != null)
                current.terminate();

            current = scene;

            if (current != null)
                current.start();
        }
Esempio n. 2
0
        public static void setScene(SceneBase scene, bool isGameLevel)
        {
            SceneManager.isGameLevel = isGameLevel;

            if (current != null)
            {
                current.terminate();
            }

            current = scene;


            if (current != null)
            {
                current.start();
            }
        }