Lightning round animation now always plays regardless of the chosen effect.
This commit is contained in:
parent
8b6604da24
commit
60a972d400
@ -49,20 +49,19 @@ public class LightningRoundEffectsController : UdonSharpBehaviour
|
||||
case LightningRoundEffect.Thunder:
|
||||
_LightningBolt.SetActive(false);
|
||||
_AudioManager.PlaySFX(SFXEventType.Thunder);
|
||||
_Animator.SetBool("Lightning", true);
|
||||
break;
|
||||
case LightningRoundEffect.LightningStrike:
|
||||
_LightningBolt.SetActive(true);
|
||||
_AudioManager.PlaySFX(SFXEventType.Thunder);
|
||||
_Animator.SetBool("Lightning", true);
|
||||
break;
|
||||
case LightningRoundEffect.ThunderAndRain:
|
||||
_LightningBolt.SetActive(false);
|
||||
_AudioManager.PlaySFX(SFXEventType.Thunder);
|
||||
_Animator.SetBool("Lightning", true);
|
||||
break;
|
||||
}
|
||||
|
||||
_Animator.SetBool("Lightning", true);
|
||||
|
||||
SendCustomEventDelayedSeconds(nameof(ResetLightningRoundAnimation), 2.0f);
|
||||
}
|
||||
public void ResetLightningRoundAnimation()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user