public void Stop(UITweenInstance inst, bool complete) { if (complete) { inst.RenderPercent(1.0f); inst.Stop(); } lock (m_ActiveTweens) { m_ActiveTweens.Remove(inst); } }
public void Stop(UITweenInstance inst, bool complete) { if (complete) { inst.Complete(); } else if (inst.Active) { inst.Stop(); } else { lock (m_ActiveTweens) { m_ActiveTweens.Remove(inst); if (m_ActiveTweens.Count == 0) { CompleteActionHandler(); } } } }