Esempio n. 1
0
 public void Damage(int damage)
 {
     health -= damage;
     flash.FlashEffect();
     shake.shakeDuration = 0.5f;
     //StartCoroutine("TimeDilation");
     if (health < 0)
     {
         Die();
     }
 }