示例#1
0
    private void FixedUpdate()
    {
        if (!_isPlaying)
        {
            return;
        }

        CurrentStep += Modifier;

        if (_isRewinding && CurrentStep <= 0)
        {
            PreviousTime = 0f;
            CurrentTime  = 0f;
            CurrentStep  = 0;

            Stop();

            Rewinded?.Invoke(this, EventArgs.Empty);
        }
    }
示例#2
0
 public void Rewind(float seconds)
 {
     _videoPlayer.Pause();
     AddTime(-seconds);
     Rewinded?.Invoke(seconds, _videoPlayer.time);
 }