Exemple #1
0
 public void VotePlayerReadyUnready(Player player)
 {
     if (votes.SingleOrDefault(x => x.Voting == player) != null)
     {
         votes.Remove(votes.SingleOrDefault(x => x.Voting == player));
     }
     else
     {
         votes.Add(VoteFactory.CreateVotePlayerReady(player));
     }
 }
Exemple #2
0
 public void VotePlayerReady(Player player)
 {
     votes.Add(VoteFactory.CreateVotePlayerReady(player));
 }