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); }
///Seta todos os botões de seleção para ativos ou inativos private void SetAllButtonsInteractable(bool interactable) { selectionPanel.SetAllButtonsInteractable(interactable); }