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(); }
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; } } }