Beispiel #1
0
    public void TeamRejected(int playerID)
    {
        if (playerID == C.GetMyId())
        {
            VoteDisplay.SetActive(false);
            RejecteDisplay.SetActive(true);
            StartCoroutine(SetOffRejectedInfo());
        }

        SetTurn(playerID);
    }
Beispiel #2
0
    public void VoteOnTeam(int[] ids)
    {
        GameCanvasCtrl.ArrowClick();
        Vote.SetActive(true);
        VoteDisplay.SetActive(true);
        RejecteDisplay.SetActive(false);
        VoteCanvasController voteCtrl = VoteDisplay.GetComponent <VoteCanvasController>();

        voteCtrl.SetController(this);

        voteCtrl.SetPlayersNames(ids);
    }