浏览代码

[Bot] Automated dotnet-format update

/main
Unknown 4 年前
当前提交
77cff63f
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 8
      UOP1_Project/Assets/Scripts/SceneManagement/LoadSceneLoader.cs
  2. 2
      UOP1_Project/Assets/Scripts/SceneManagement/LocationLoader.cs

8
UOP1_Project/Assets/Scripts/SceneManagement/LoadSceneLoader.cs


public class LoadSceneLoader : MonoBehaviour
{
public GameSceneSO initializationScene;
void Start()
{
#if UNITY_EDITOR
void Start()
{
#if UNITY_EDITOR
for (int i = 0; i < SceneManager.sceneCount; ++i)
{
Scene scene = SceneManager.GetSceneAt(i);

}
}
SceneManager.LoadSceneAsync(initializationScene.sceneName, LoadSceneMode.Additive);
#endif
#endif
}
}

2
UOP1_Project/Assets/Scripts/SceneManagement/LocationLoader.cs


private void Start()
{
if(SceneManager.GetActiveScene().name == initializationScene.sceneName)
if (SceneManager.GetActiveScene().name == initializationScene.sceneName)
{
LoadMainMenu();
}

正在加载...
取消
保存