Exemplo n.º 1
0
        public void Play(bool restart)
        {
            if (!_sequence.IsStopped && restart)
            {
                _sequence.Stop();
            }



            int frame = _viewRange.Cull(_sequence.GetCurrentFrame());

            _sequence.Play(frame);

            _timeStartedPlaying = EditorApplication.timeSinceStartup - (frame - _viewRange.Start) * _sequence.InverseFrameRate;

            SetCurrentFrame(frame);

            _isPlaying = true;

            FUtility.RepaintGameView();
        }
Exemplo n.º 2
0
 private void Update()
 {
     if (m_KillNum > 0)
     {
         m_WaitTime -= Time.time;
         if (m_WaitTime < 0)
         {
             m_FSequence.Stop();
             SceneManager.LoadScene(m_NextIndexSceneIndex);
             m_KillNum = 0;
         }
     }
 }
Exemplo n.º 3
0
 public override void OnEnter()
 {
     sequence.Stop(reset.Value);
     Finish();
 }