mirror of
https://github.com/ConjureETS/PixelSphinx.git
synced 2026-03-24 02:20:58 +00:00
Whizz ejecting player sound
This commit is contained in:
parent
ea0a08d91f
commit
49f9f102af
@ -82,7 +82,7 @@ public class Asteroid : MonoBehaviour
|
||||
AudioSource.PlayClipAtPoint(audio.clip, transform.position, audio.volume);
|
||||
|
||||
var wait = new WaitForSeconds(emitter.GetComponent<ParticleSystem>().duration);
|
||||
Destroy(emitter);
|
||||
//Destroy(emitter); //doesnt play if removed.
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -48,6 +48,9 @@ public class AstronautAnimator : MonoBehaviour {
|
||||
public void Eject()
|
||||
{
|
||||
StartCoroutine(Spin());
|
||||
var audio = aspi.GetComponent<AudioSource>(); //eject sound
|
||||
audio.bypassListenerEffects = true;
|
||||
AudioSource.PlayClipAtPoint(audio.clip, transform.position, audio.volume);
|
||||
}
|
||||
|
||||
IEnumerator Spin()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user