Пример #1
0
 public void Stop(UITweenInstance inst, bool complete)
 {
     if (complete)
     {
         inst.RenderPercent(1.0f);
     }
     lock (m_ActiveTweens)
     {
         m_ActiveTweens.Remove(inst);
     }
 }
Пример #2
0
        public UITweenInstance To(object obj, float duration, Dictionary <string, float> args, EaseFunction ease)
        {
            var inst = new UITweenInstance(this, obj, duration, args, ease);

            lock (m_ActiveTweens)
            {
                m_ActiveTweens.Add(inst);
            }
            inst.Start();
            return(inst);
        }
Пример #3
0
 public void Stop(UITweenInstance inst, bool complete)
 {
     if (complete)
     {
         inst.RenderPercent(1.0f);
     }
     lock (m_ActiveTweens)
     {
         m_ActiveTweens.Remove(inst);
     }
 }
Пример #4
0
 public UITweenInstance To(object obj, float duration, Dictionary<string, float> args, EaseFunction ease)
 {
     var inst = new UITweenInstance(this, obj, duration, args, ease);
     lock (m_ActiveTweens)
     {
         m_ActiveTweens.Add(inst);
     }
     inst.Start();
     return inst;
 }
 void tween_OnComplete(UITweenInstance tween, float progress)
 {
     InTween = false;
     CheckPreloadLabel();
 }