浏览代码

Merge branch 'main' into UI

/UI
uChema 3 年前
当前提交
4b0c5144
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 3
      UOP1_Project/Assets/Scripts/SceneManagement/InitializationLoader.cs
  2. 2
      UOP1_Project/Assets/Scripts/SceneManagement/LoadingScreenManager.cs

3
UOP1_Project/Assets/Scripts/SceneManagement/InitializationLoader.cs


private void LoadMainMenu(AsyncOperationHandle<LoadEventChannelSO> obj)
{
LoadEventChannelSO loadEventChannelSO = (LoadEventChannelSO)_menuLoadChannel.Asset;
loadEventChannelSO.RaiseEvent(_menuToLoad);
obj.Result.RaiseEvent(_menuToLoad);
SceneManager.UnloadSceneAsync(0); //Initialization is the only scene in BuildSettings, thus it has index 0
}

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


{
if (_ToggleLoadingScreen != null)
{
_ToggleLoadingScreen.OnEventRaised += ToggleLoadingScreen;
_ToggleLoadingScreen.OnEventRaised -= ToggleLoadingScreen;
}
}

正在加载...
取消
保存