private void FixedUpdate() { if (!_isPlaying) { return; } CurrentStep += Modifier; if (_isRewinding && CurrentStep <= 0) { PreviousTime = 0f; CurrentTime = 0f; CurrentStep = 0; Stop(); Rewinded?.Invoke(this, EventArgs.Empty); } }
public void Rewind(float seconds) { _videoPlayer.Pause(); AddTime(-seconds); Rewinded?.Invoke(seconds, _videoPlayer.time); }