// Use this for initialization void Start() { throwCountdown = throwDelay; warningCountdown = warningTime; blockableCDTimer = blockableCDMax; lrWarningCounter = lrWarningTime; healthPercent = (currentHealth / totalHealth); healthUI.value = healthPercent; FLoatingTextController.Initialize(); }
public void TakeDamage(float damage) { currentHealth -= damage; FLoatingTextController.CreateFloatingText(damage.ToString(), transform); }