public void RemoveNetIDFromConnectedNetID(string _playerID) { if (ConnectedNetID.ContainsKey(_playerID)) { ConnectedNetID.Remove(_playerID); NumberConnectedPlayers--; } }
public void AddNetIdToConnectedNetID(string _playerID, NetworkInstanceId netID) { if (!ConnectedNetID.ContainsKey(_playerID)) { ConnectedNetID.Add(_playerID, netID); NumberConnectedPlayers++; } }
public NetworkInstanceId GetNetIDFromConnectedNetID(string _playerID) { if (ConnectedNetID.ContainsKey(_playerID)) { return(ConnectedNetID[_playerID]); } return(NetworkInstanceId.Invalid); }