/// <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); } }