コード例 #1
0
 private void OnSceneEvent(Enums.SceneState state)
 {
     if (state == Enums.SceneState.Stopped)
     {
         CurrentPathLerpPosition = StartPathingLerpPosition;
         CurrentPathNodeIndex    = StartPathNodeIndex;
     }
 }
コード例 #2
0
 private void OnSceneEventTriggered(Enums.SceneState state)
 {
     if (state == Enums.SceneState.Playing)
     {
         IsTraveling = true;
     }
     else if (state == Enums.SceneState.Stopped)
     {
         IsTraveling = false;
     }
 }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
        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;
                }
            }
        }