Esempio n. 1
0
 public void PlayHit(AbstractGoTween t)
 {
     if (hasTypes.Contains(RLTypes.MONSTER))
     {
         Camera.main.audio.PlayOneShot(AllTogether.instance().playerHurtAudio);
     }
 }
Esempio n. 2
0
 public void FinalKill(AbstractGoTween t = null)
 {
     if (!hasTypes.Contains(RLTypes.MONSTER) &&
         !hasTypes.Contains(RLTypes.GOLD_PICKUP) &&
         !hasTypes.Contains(RLTypes.HEALTH_PICKUP) &&
         !hasTypes.Contains(RLTypes.ACTION_PICKUP)
         )
     {
         Camera.main.audio.PlayOneShot(AllTogether.instance().playerDeathAudio);
     }
     Destroy(gameObject);
 }