protected override void Launch() { _currentIndex = 0; if (0 == Children.Count) { #if DEBUG if (DebugMode) { Debug.Log("Sequence: No tweens defined"); } #endif return; } #if DEBUG if (DebugMode) { Debug.Log("Sequence Launch"); } #endif //ITween first = null; _currentTween = Children[_currentIndex]; TweenBase tb = _currentTween as TweenBase; if (null == tb) { return; } // add my delay to the first tween //tb.Delay += Delay; //tb.Play(); if (null != Target && null == tb.Target) { tb.Play(Target); } else { tb.Play(); } }
protected override void Launch() { if (0 == Children.Count) { #if DEBUG if (DebugMode) { Debug.Log("Parallel: No tweens defined"); } #endif return; } #if DEBUG if (DebugMode) { Debug.Log("*** Parallel Launch *** " + this); } #endif // play all tweens in parallel Children.ForEach(delegate(IAsyncAction action) { //Debug.Log("### " + tween.StartValue); TweenBase tb = action as TweenBase; if (null != tb) { tb.Delay += Delay; if (null != Target && null == tb.Target) { tb.Play(Target); } else { tb.Play(); } } }); }