Beispiel #1
0
 public void Stop(UITweenInstance inst, bool complete)
 {
     if (complete)
     {
         inst.RenderPercent(1.0f);
         inst.Stop();
     }
     lock (m_ActiveTweens)
     {
         m_ActiveTweens.Remove(inst);
     }
 }
Beispiel #2
0
 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();
             }
         }
     }
 }