protected override void HitSFX() { // TODO: don't instantiate this, use audio mixer audioOneShotSource = Script_Game.Game.CreateAudioOneShotSource(transform.position); audioOneShotSource.Setup(crunchSFX); audioOneShotSource.PlayOneShot(); }
private void Swallowed() { animator.SetTrigger(SwallowedTrigger); audioOneShotSource = Script_Game.Game.CreateAudioOneShotSource(transform.position); audioOneShotSource.Setup(deathCrySFX); audioOneShotSource.PlayOneShot(); }
public override void FadeOut(Action cb) { audioOneShotSource = game.CreateAudioOneShotSource(transform.position); audioOneShotSource.Setup(fadeOutSFX); audioOneShotSource.PlayOneShot(); fadeOutCo = StartCoroutine( rendererChild.GetComponent <Script_SpriteFadeOut>().FadeOutCo(cb) ); }