From 27df4282109a26a21aa042793c3136fbb5b81a98 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Tue, 16 May 2023 08:50:55 +0800 Subject: *misc --- .../Assets/Scripts/Battle/SceneManager.cs | 27 ++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'WorldlineKeepers/Assets/Scripts/Battle/SceneManager.cs') diff --git a/WorldlineKeepers/Assets/Scripts/Battle/SceneManager.cs b/WorldlineKeepers/Assets/Scripts/Battle/SceneManager.cs index 9ed2fc9..ff7ac65 100644 --- a/WorldlineKeepers/Assets/Scripts/Battle/SceneManager.cs +++ b/WorldlineKeepers/Assets/Scripts/Battle/SceneManager.cs @@ -2,10 +2,29 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -public class SceneManager : Singleton +namespace WK { - // 场景内所有对象用这个结构维护 - private GridMap m_GridMap; + /// + /// 命名和UnityEngine.SceneManagement.SceneManager区分 + /// + public class GameSceneManager : Singleton + { + private AsyncOperation m_AsyncOpt = null; + public AsyncOperation AsyncOpt + { + get + { + return m_AsyncOpt; + } + } -} \ No newline at end of file + public void LoadScene(string sceneName, UnityEngine.SceneManagement.LoadSceneMode loadMode) + { + m_AsyncOpt = UnityEngine.SceneManagement.SceneManager.LoadSceneAsync(sceneName, loadMode); + } + + + } + +} -- cgit v1.1-26-g67d0