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

            return(NetworkInstanceId.Invalid);
        }