public void DecreaseEnergy(float value) { currentEnergy -= value; if (currentEnergy <= 0) { StartCoroutine(playerController.Faint()); } UpdateFillbar(); }
public void DecreaseEnergy(float value) { currentEnergy -= value; if (currentEnergy <= 0) { StartCoroutine(playerController.Faint()); } UpdateFillbar(); }