IEnumerator HurtCoroutine() { MaterialHelper.EnableEmission(enemyModel, Color.red); yield return(new WaitForSeconds(hurtFeedbackTime)); MaterialHelper.DisableEmission(enemyModel); }
public void Die() { StopAllCoroutines(); MaterialHelper.DisableEmission(enemyModel); this.enabled = false; }