Ejemplo n.º 1
0
        public static UnloadSceneTask CreateTask(string sceneName, bool autoStart = true)
        {
            UnloadSceneTask newTask = new UnloadSceneTask(sceneName);

            if (autoStart)
            {
                newTask.Start();
            }

            return(newTask);
        }
Ejemplo n.º 2
0
        public static UnloadSceneTask CreateTask(int sceneIndex, bool autoStart = true)
        {
            UnloadSceneTask newTask = new UnloadSceneTask(sceneIndex);

            if (autoStart)
            {
                newTask.Start();
            }

            return(newTask);
        }