Skip to content

Commit

Permalink
fix: multi scene example nre and event errors (#649)
Browse files Browse the repository at this point in the history
* fix: update scene refs

* fix event wiring

* work around timing race condition
  • Loading branch information
uweeby committed Mar 2, 2021
1 parent 585acca commit 8c4c352
Show file tree
Hide file tree
Showing 6 changed files with 321 additions and 201 deletions.
2 changes: 1 addition & 1 deletion Assets/Mirage/Components/NetworkSceneChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void Awake()
currentScene = gameObject.scene;
if (logger.LogEnabled()) logger.Log($"NetworkSceneChecker.Awake currentScene: {currentScene}");

NetIdentity.OnStartServer.AddListener(OnStartServer);
OnStartServer();
}

public void OnStartServer()
Expand Down

0 comments on commit 8c4c352

Please sign in to comment.