Example #1
0
 public override object Clone()
 {
     var act             = new CozyMoveBy();
     act.InitWithDuraction(this.Duration);
     act.PositionDelta   = this.PositionDelta;
     return act;
 }
Example #2
0
        public override object Clone()
        {
            var act = new CozyMoveBy();

            act.InitWithDuraction(this.Duration);
            act.PositionDelta = this.PositionDelta;
            return(act);
        }
Example #3
0
 public static CozyMoveBy Create(float duration, Vector2 deltaPosition)
 {
     var act             = new CozyMoveBy();
     act.PositionDelta   = deltaPosition;
     act.InitWithDuraction(duration);
     if(act.Duration == 0.0f)
     {
         act.Duration    = float.Epsilon;
     }
     return act;
 }
Example #4
0
        public static CozyMoveBy Create(float duration, Vector2 deltaPosition)
        {
            var act = new CozyMoveBy();

            act.PositionDelta = deltaPosition;
            act.InitWithDuraction(duration);
            if (act.Duration == 0.0f)
            {
                act.Duration = float.Epsilon;
            }
            return(act);
        }