public override void OnServerDisconnect(NetworkConnection conn) { base.OnServerDisconnect(conn); OnNumPlayersChanged?.Invoke(numPlayers); }
public override void OnServerAddPlayer(NetworkConnection conn, short playerControllerId, NetworkReader extraMessageReader) { base.OnServerAddPlayer(conn, playerControllerId, extraMessageReader); OnNumPlayersChanged?.Invoke(numPlayers); }
public override void OnServerRemovePlayer(NetworkConnection conn, PlayerController player) { base.OnServerRemovePlayer(conn, player); OnNumPlayersChanged?.Invoke(numPlayers); }
public override void OnServerAddPlayer(NetworkConnection conn, short playerControllerId) { base.OnServerAddPlayer(conn, playerControllerId); OnNumPlayersChanged?.Invoke(numPlayers); }