Esempio n. 1
0
        public void DecreaseEnergy(float value)
        {
            currentEnergy -= value;

            if (currentEnergy <= 0)
            {
                StartCoroutine(playerController.Faint());
            }
            UpdateFillbar();
        }