Example #1
0
 public override void Damage(float damage)
 {
     if (guard.Status != GuardStatus.Guarding)
     {
         // TODO: Send Player Damage Event
         // TODO: Screen Shake
         // TODO: Noise
         audioSource.PlayOneShot(damagedAudio);
         HP.MinusOverTime(damage);
     }
     else
     {
         // Send Player Guard Event
         audioSource.PlayOneShot(guardedAudio);
         Debug.Log("WHOAH! A block!");
     }
 }