This commit is contained in:
CortexCore
2024-12-17 17:51:58 +08:00
parent d502501b27
commit 0fddf0dc2a
10 changed files with 146 additions and 5 deletions

View File

@@ -83,6 +83,14 @@ namespace BITKit.SceneManagement
public class SceneService : MonoBehaviour,ISceneService
{
#if UNITY_EDITOR
[UnityEditor.MenuItem("Tools/Scenes/Toggle Scene Service Once")]
public static void ToggleSceneServiceOnce()
{
AllowInitialize = !AllowInitialize;
Debug.Log("允许初始化场景设置为:"+AllowInitialize);
}
#endif
[BITCommand]
public static async void Map(string mapName)
{