public void PlayHit(AbstractGoTween t) { if (hasTypes.Contains(RLTypes.MONSTER)) { Camera.main.audio.PlayOneShot(AllTogether.instance().playerHurtAudio); } }
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); }