public void Kill() { if (!IsPlaying) { return; } IsPlaying = false; IsCompleted = true; OnTweenKill(); OnKill?.Invoke(); OnCompleteOrKill?.Invoke(); }
protected void NewMarkCompleted() { if (!IsPlaying) { return; } bool loops = NewLoop(LoopResetMode); if (loops) { return; } IsPlaying = false; IsCompleted = true; OnTweenComplete(); OnComplete?.Invoke(); OnCompleteOrKill?.Invoke(); }