public void EditorPlay(double deltaTime) { DOTween.ManualUpdate((float)deltaTime, (float)deltaTime); if (sequence.IsComplete()) { sequence.Rewind(false); EditorUpdate.RemoveEditorUpdatePlug(EditorPlay); } }
public void StopPreview() { try { sequence?.Complete(); sequence.Rewind(); } catch (Exception) { // ignored } EditorUpdate.RemoveEditorUpdatePlug(EditorPlay); }