This commit is contained in:
Rapandrasmus 2024-01-01 16:10:36 +01:00
parent 3a632de874
commit b46066e5d3

View file

@ -300,6 +300,8 @@ namespace HeavenStudio.Games.Scripts_TotemClimb
private void SwitchToNextState(IEnumerator coroutine) private void SwitchToNextState(IEnumerator coroutine)
{ {
_highParticle.Stop();
_highMissParticle.Stop();
if (_currentStateCo != null) StopCoroutine(_currentStateCo); if (_currentStateCo != null) StopCoroutine(_currentStateCo);
_currentStateCo = coroutine; _currentStateCo = coroutine;
StartCoroutine(_currentStateCo); StartCoroutine(_currentStateCo);