예제 #1
0
    public void RemovePlayerButton()
    {
        int index = this.gameObject.transform.GetSiblingIndex() - 1;

        CurrentGame.data.players.RemoveAt(index);
        confirmationList.ReRender();
    }
예제 #2
0
    public void MoreInputs()
    {
        if (count > 0)
        {
            PlayerInputCount(count);
        }
        else if (count <= 0)
        {
            //if this is already active .... confirmationPanel.SetActive(true)

            //Debug.Log("game is ready");
            //set another button up that increases count + 1
            //activate the last prompt that says here are the players
            //confirmationList.ReRender();
            confirmationList.ReRender();
            confirmationPanel.SetActive(true);
            this.gameObject.SetActive(false);
        }
    }