Exemple #1
0
 public void Vote_Yes()
 {
     if (!Voted)
     {
         Voting.Vote("yes");
         Voted = true;
     }
 }
Exemple #2
0
 public void OnVoted(string selection, PhotonMessageInfo info)
 {
     if ((bool)PhotonNetwork.LocalPlayer.CustomProperties["isMod"])
     {
         // only moderator evaluates the votes
         Debug.Log(info.Sender.NickName + " voted for " + selection);
         votingSystem.Vote(selection);
     }
 }