Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public virtual WaitForTweenPlay WaitForPlay()
        {
            WaitForTweenPlay wait;

            if (_ticker is WaitForTweenPlay)
            {
                wait = (WaitForTweenPlay)_ticker;
            }
            else
            {
                wait    = new WaitForTweenPlay(_ticker, this);
                _ticker = wait;
            }
            PlayTween();
            return(wait);
        }