示例#1
0
        public virtual void Cancel()
        {
            int count = m_Tweens.Count;

            for (int x = 0; x < count; ++x)
            {
                ITween tween = m_Tweens[x];
                tween.Cancel();
            }
            m_Tweens.Clear();
        }
示例#2
0
        public void Cancel(ITween tween)
        {
            int count = m_Tweens.Count;

            for (int x = 0; x < count; ++x)
            {
                ITween existingTween = m_Tweens[x];
                if (existingTween == tween)
                {
                    existingTween.Cancel();
                    m_Tweens.RemoveAt(x);
                    break;
                }
            }
        }