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