private void OnSceneEvent(Enums.SceneState state) { if (state == Enums.SceneState.Stopped) { CurrentPathLerpPosition = StartPathingLerpPosition; CurrentPathNodeIndex = StartPathNodeIndex; } }
private void OnSceneEventTriggered(Enums.SceneState state) { if (state == Enums.SceneState.Playing) { IsTraveling = true; } else if (state == Enums.SceneState.Stopped) { IsTraveling = false; } }
private void OnSceneEvent(Enums.SceneState state) { switch (state) { case Enums.SceneState.Playing: AddParticles(MaxParticles); break; case Enums.SceneState.Stopped: { Particles.Clear(); CurrentPathLerpPosition = StartPathingLerpPosition; CurrentPathNodeIndex = StartPathNodeIndex; } break; } }
private void OnSceneEvent(Enums.SceneState state) { if (ClipPlayer.CurrentSequence != null) { switch (state) { case Enums.SceneState.Playing: ClipPlayer.Play(ClipPlayer.CurrentSequence.Name, ClipPlayer.IsLooped); break; case Enums.SceneState.Stopped: { CurrentPathLerpPosition = StartPathingLerpPosition; CurrentPathNodeIndex = StartPathNodeIndex; ClipPlayer.Stop(true); } break; } } }