Esempio n. 1
0
        // Executed when leaving this state.
        public override void Exit()
        {
            base.Exit();

            ClassSelectionPanel.SetActive(false);

            // Updates UI elements.
            EndTurnButton.gameObject.SetActive(true);
            MoveButton.gameObject.SetActive(true);
            AttackButton.gameObject.SetActive(true);
            HideGridButton.gameObject.SetActive(true);
            BottomPanel.SetActive(true);
        }
Esempio n. 2
0
        // Executed when entering this state.
        public override void Enter()
        {
            base.Enter();

            // Updates UI elements.
            GameStateLabel.text = "State: Choose your Class";

            ClassSelectionPanel.SetActive(true);
            GameView.SetSelectionColors(0.7f, 0.7f, 0.7f);
            Transform temp = ClassSelectionPanel.transform.Find("ConfirmButton");

            temp.gameObject.SetActive(true);
            temp.GetComponent <Button>().interactable = false;

            EndTurnButton.gameObject.SetActive(false);
            MoveButton.gameObject.SetActive(false);
            AttackButton.gameObject.SetActive(false);
            HideGridButton.gameObject.SetActive(false);
            BottomPanel.SetActive(false);
        }