Exemplo n.º 1
0
        public Action(Tween.CallbackFunction callback)
        {
            Callback = callback;

            //CheckTarget = false;
            //CheckProperty = false;
            //CheckStartValue = false;
            //CheckEndValue = false;

            Delay = 0;
            Duration = 0;
        }
Exemplo n.º 2
0
        //private static readonly ObjectPool<Tween> Tweens = new ObjectPool<Tween>();

        ///<summary>
        /// Gets the tween from the pool
        ///</summary>
        ///<returns></returns>
        public static Tween New()
        {
            //Tween tween = Tweens.Get(); // premature optimization...
            //tween.Init();
            Tween tween = new Tween();
            return tween;
        }
Exemplo n.º 3
0
 public SetPropertyFunc(Tween.PropertySetterFunction func)
 {
     Func = func;
 }