Пример #1
0
 public override void OnServerDisconnect(NetworkConnection conn)
 {
     base.OnServerDisconnect(conn);
     OnNumPlayersChanged?.Invoke(numPlayers);
 }
Пример #2
0
 public override void OnServerAddPlayer(NetworkConnection conn, short playerControllerId, NetworkReader extraMessageReader)
 {
     base.OnServerAddPlayer(conn, playerControllerId, extraMessageReader);
     OnNumPlayersChanged?.Invoke(numPlayers);
 }
Пример #3
0
 public override void OnServerRemovePlayer(NetworkConnection conn, PlayerController player)
 {
     base.OnServerRemovePlayer(conn, player);
     OnNumPlayersChanged?.Invoke(numPlayers);
 }
Пример #4
0
 public override void OnServerAddPlayer(NetworkConnection conn, short playerControllerId)
 {
     base.OnServerAddPlayer(conn, playerControllerId);
     OnNumPlayersChanged?.Invoke(numPlayers);
 }