Exemplo n.º 1
0
 private void Start()
 {
     vote = FindObjectOfType <VoteState>();
     vote.onAgreeVoteSent    += StartUseTicketFrame;
     vote.onDisagreeVoteSent += StartUseTicketFrame;
 }
Exemplo n.º 2
0
 private void Awake()
 {
     voteState = FindObjectOfType <VoteState>();
     voteState.onVoteRoundStart += OnVoteRoundStart;
     voteState.onVoteRoundEnd   += OnVoteRoundEnd;
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     vote = FindObjectOfType <VoteState>();
     vote.onVoteResultReceived += ShowVoteResult;
 }