public virtual WaitForTweenPlay WaitForGotoAndPlay(float position) { WaitForTweenPlay wait; if (_ticker is WaitForTweenPlay) { wait = (WaitForTweenPlay)_ticker; } else { wait = new WaitForTweenPlay(_ticker, this); _ticker = wait; } GotoAndPlayTween(position); return(wait); }
public virtual WaitForTweenPlay WaitForPlay() { WaitForTweenPlay wait; if (_ticker is WaitForTweenPlay) { wait = (WaitForTweenPlay)_ticker; } else { wait = new WaitForTweenPlay(_ticker, this); _ticker = wait; } PlayTween(); return(wait); }