private IEnumerator HealthDecreaseCoroutine(float interval) { WaitForSeconds waitForSeconds = new WaitForSeconds(interval); while (true) { combatEntity.DecreaseHealth(hpDecreasingValue); yield return(waitForSeconds); } }