public override void OnStartClient(NetworkClient client) { base.OnStartClient(client); if (!NetworkServer.active) { StartLoading(); Lobby = new LobbyManager(_clientMessaging, Players); } var op = SceneManager.LoadSceneAsync("Lobby"); op.completed += (aop) => { NetworkServer.SpawnObjects(); }; }
public override void OnStartServer() { base.OnStartServer(); Lobby = new LobbyManager(_serverMessaging, Players); }