예제 #1
0
    IEnumerator HurtCoroutine()
    {
        MaterialHelper.EnableEmission(enemyModel, Color.red);
        yield return(new WaitForSeconds(hurtFeedbackTime));

        MaterialHelper.DisableEmission(enemyModel);
    }
예제 #2
0
 public void Die()
 {
     StopAllCoroutines();
     MaterialHelper.DisableEmission(enemyModel);
     this.enabled = false;
 }