Beispiel #1
0
 public void DoDeadRpc()
 {
     if (animator)
     {
         animator.SetTrigger("Die");
     }
     ZDAudioSource.PlayAtPoint(DeathSound, transform.position, 1, false);
 }
Beispiel #2
0
 void PerformBroken()
 {
     if (BrokenEffect)
     {
         Instantiate(BrokenEffect, transform.position, Quaternion.identity);
     }
     if (BrokenAudio)
     {
         ZDAudioSource.PlayAtPoint(BrokenAudio, transform.position, 1.0f);
     }
     if (animator)
     {
         animator.SetTrigger("Broken");
     }
 }
Beispiel #3
0
 public void PlaySound(AudioClip clip)
 {
     ZDAudioSource.PlayAtPoint(clip, transform.position, PlaySoundVolume);
 }