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