コード例 #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();
        }
コード例 #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();
            }
        }