public void RemoveTween(Tween t) { int index = m_tweens.IndexOf(t); if (index == -1) throw new ArgumentException("Core object does not contain Tween."); t.Active = false; m_tweens.RemoveAt(index); }
public void AddTween(Tween t, bool start) { if (t.Parent != null) throw new ArgumentException("Cannot add a Tween object more than once."); t.Parent = this; m_tweens.Insert(0, t); if (start) t.Start(); }
public void AddTween(Tween t) { AddTween(t, false); }