Example #1
0
        public static MoveBy Create(float duration, Vector3 deltaPosition, CoordinateStyle style = CoordinateStyle.Local)
        {
            MoveBy ret = new MoveBy();

            if (ret != null && ret.InitWithStyle(duration, deltaPosition, style))
            {
                return(ret);
            }
            return(null);
        }
Example #2
0
        public static new MoveTo Create(float duration, Vector3 position, CoordinateStyle style = CoordinateStyle.Local)
        {
            MoveTo ret = new MoveTo();

            if (ret != null && ret.InitWithDuration(duration, position, style))
            {
                return(ret);
            }
            return(null);
        }
Example #3
0
        private bool InitWithStyle(float duration, Vector3 deltaPosition, CoordinateStyle style)
        {
            bool ret = false;

            if (base.InitWithDuration(duration))
            {
                this.positionDelta = deltaPosition;
                this.style         = style;
                ret = true;
            }
            return(ret);
        }
Example #4
0
        private bool InitWithDuration(float duration, Vector3 position, CoordinateStyle style)
        {
            bool ret = false;

            if (base.InitWithDuration(duration))
            {
                this.style       = style;
                this.endPosition = position;
                ret = true;
            }
            return(ret);
        }