Ejemplo n.º 1
0
        public static void Enqueue(Animator2 animator)
        {
            lock ( s_animatingObjects ) {
                Dictionary <String, Queue <Animator2> > animatingProperties;

                if (!s_animatingObjects.ContainsKey(animator.TargetControl))
                {
                    s_animatingObjects.Add(
                        animator.TargetControl,
                        new Dictionary <String, Queue <Animator2> > {
                        { animator.m_propertyName, new Queue <Animator2>() }
                    }
                        );
                }

                animatingProperties = s_animatingObjects[animator.TargetControl];

                if (!animatingProperties.ContainsKey(animator.m_propertyName))
                {
                    animatingProperties.Add(animator.m_propertyName, new Queue <Animator2>());
                }

                animatingProperties[animator.m_propertyName].Enqueue(animator);
            }
        }
Ejemplo n.º 2
0
 public void Enqueue <TEasing>() where TEasing : IAnimationEasing
 {
     m_easing = Activator.CreateInstance <TEasing>();
     Animator2.Enqueue(this);
 }
Ejemplo n.º 3
0
 public void Enqueue()
 {
     m_easing = new EaseInOutBack();
     Animator2.Enqueue(this);
 }