public IPlayer GetPlayerById(ulong id) { IPlayer player = BluePlayers.FirstOrDefault(p => p.Id == id); if (player == null) { player = RedPlayers.FirstOrDefault(p => p.Id == id); } return(player); }
public IPlayer GetPlayerByGuid(string guid) { IPlayer player = BluePlayers.FirstOrDefault(p => p.Guid.ToString() == guid); if (player == null) { player = RedPlayers.FirstOrDefault(p => p.Guid.ToString() == guid); } return(player); }