浏览代码

I'm curious why the AO handle result is not used in this context? (#414)

/main
GitHub 3 年前
当前提交
73ce8d6d
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      UOP1_Project/Assets/Scripts/SceneManagement/InitializationLoader.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
}
正在加载...
取消
保存