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; } } }
public void Stop(bool reset) { ClipPlayer.Stop(reset); }