Fixed a bug that caused the lightning round intro to never recover from reset.

This commit is contained in:
Jamie Greunbaum 2026-05-11 02:48:48 -04:00
parent 554add639e
commit dda2ffcf95

View File

@ -62,6 +62,8 @@ public class LightningRoundEffectsController : UdonSharpBehaviour
{ {
if (_Effect != _Effect_Cached) if (_Effect != _Effect_Cached)
{ {
_Effect_Cached = _Effect;
switch (_Effect) switch (_Effect)
{ {
case LightningRoundEffect.Thunder: case LightningRoundEffect.Thunder:
@ -85,8 +87,6 @@ public class LightningRoundEffectsController : UdonSharpBehaviour
_Animator.SetBool("Lightning", true); _Animator.SetBool("Lightning", true);
SendCustomEventDelayedSeconds(nameof(ResetLightningRoundAnimation), 2.0f); SendCustomEventDelayedSeconds(nameof(ResetLightningRoundAnimation), 2.0f);
_Effect_Cached = _Effect;
} }
} }
public void ResetLightningRoundAnimation() public void ResetLightningRoundAnimation()