示例#1
0
    public void Start()
    {
        //Pego o gameController
        GameObject gmControl = GameObject.FindGameObjectWithTag("GameController");

        if (gmControl != null)
        {
            controller = gmControl.GetComponent <GameController>();

            //Seta os botões da tela de seleção
            selectionPanel.SetButtonsWithPowliticosArray(controller.powliticos);
        }

        //Deixo o primeiro botão selecionado
        SelectChar(0);
        selectionPanel.SetAllButtonsInteractable(true);
    }
示例#2
0
 ///Seta todos os botões de seleção para ativos ou inativos
 private void SetAllButtonsInteractable(bool interactable)
 {
     selectionPanel.SetAllButtonsInteractable(interactable);
 }