Exemple #1
0
    public void ShowButtons()
    {
        bool hasToShowButton = PlayerStatsController.GetAttributsPoints() > 0;

        buttonAddConcentration.SetActive(hasToShowButton);
        buttonAddComunication.SetActive(hasToShowButton);
        buttonAddPrecision.SetActive(hasToShowButton);
        buttonAddReflex.SetActive(hasToShowButton);
    }
Exemple #2
0
 // Update is called once per frame
 void Update()
 {
     ShowButtons();
     remainingPoints.text = PlayerStatsController.GetAttributsPoints().ToString();
 }