void DeductHealth(int healthToDeduct) { health -= healthToDeduct; CheckIfHealthLow(); if (health <= 0 && isExploding) { isExploding = true; destructibleMaster.CallEventDestroyMe(); } }
IEnumerator BeginExplosionTimer() { yield return(new WaitForSeconds(waitTime)); destructibleMaster.CallEventDestroyMe(); }