void Start()
{
startRot = this.transform.eulerAngles;
buttons = this.transform.GetComponentsInChildren<ButtonSwitch>();
StartCoroutine(StartTween());
}
private IEnumerator StartTween()
{
yield return new WaitForSeconds(startDelay);
tween = this.transform.DORotate(new Vector3(0, 0, incrementInterval * direction), rotateSpeed, RotateMode.Fast);
tween.SetEase(Ease.Linear);
tween.OnStepComplete(NodePaused);
tween.OnStart(NodeStart);
tween.SetRecyclable(false);
DOTween.Sequence()
.Append(tween)
.AppendInterval(incrementTime)
.SetLoops(-1, LoopType.Incremental);
tween.Pause();
}
The tween will not pause, rewind, or even restart.
What am I doing wrong?
Thanks!