예제 #1
0
        /// <summary>
        /// 激活场景
        /// </summary>
        /// <param name="sceneName"></param>
        /// <returns></returns>
        static public void SetActiveScene(string sceneName)
        {
            Scene scene;

            if (CacheManager.GetSceneBundle(sceneName) != null && (scene = SceneManager.GetSceneByName(sceneName)) != null)
            {
                SceneManager.SetActiveScene(scene);
            }
        }