Tunnel Defuckedificaition + small tweaks and additions (#309)

* tweaks and fixes

* SMALL FIX
This commit is contained in:
Rapandrasmus
2023-02-21 22:56:01 +01:00
committed by GitHub
parent 1454715f97
commit 8409cb2818
8 changed files with 106 additions and 72 deletions

View File

@ -15,6 +15,7 @@ namespace HeavenStudio.Games.Scripts_Fireworks
public bool isSparkler;
private Fireworks game;
public float startBeat;
public bool applause;
private bool exploded;
private float startY;
@ -54,14 +55,15 @@ namespace HeavenStudio.Games.Scripts_Fireworks
anim.gameObject.SetActive(false);
return;
}
Success();
Success(caller);
}
void Success()
void Success(PlayerActionEvent caller)
{
Jukebox.PlayOneShotGame("fireworks/explodeRocket");
selectedParticleEffect.Play();
anim.gameObject.SetActive(false);
if (applause) Jukebox.PlayOneShot("applause", caller.timer + caller.startBeat + 1f);
}
void Out(PlayerActionEvent caller) { }