public void Vote_Yes() { if (!Voted) { Voting.Vote("yes"); Voted = true; } }
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); } }