Exemplo n.º 1
0
        /**
         * locally rotate GameObject around on axis BY a specific value
         */
        public static TweenOps URotateBy(this TweenOps tweenOps, float targetValue, V3Compnent axis, UnityGameObjectRotateAxisTweener axisTweener = null)
        {
            if (axisTweener == null)
            {
                axisTweener = new UnityGameObjectRotateAxisTweener(axis);
            }

            tweenOps.PropBy("URotate", new Vector3(targetValue, targetValue, targetValue), axisTweener);

            return(tweenOps);
        }
Exemplo n.º 2
0
        /**
         * move on axis of a GameObject BY a given position
         */
        public static TweenOps UMoveBy(this TweenOps tweenOps, float targetValue, V3Compnent component, UnityGameObjectMoveAxisTweener axisTweener = null)
        {
            if (axisTweener == null)
            {
                axisTweener = new UnityGameObjectMoveAxisTweener(component);
            }

            tweenOps.PropBy("UMove", new Vector3(targetValue, targetValue, targetValue), axisTweener);

            return(tweenOps);
        }
 public UnityGameObjectMoveAxisTweener(V3Compnent v3Comp)
 {
     V3Comp = v3Comp;
 }
Exemplo n.º 4
0
        /**
         * tween one component of a Vector3 BY a specific value
         */
        public static TweenOps UV3CompBy(this TweenOps tweenOps, string propertyName, float targetValue, V3Compnent component, UnityVector3ComponentTweener tweener = null)
        {
            if (tweener == null)
            {
                tweener = new UnityVector3ComponentTweener(component);
            }

            tweenOps.PropBy(propertyName, new Vector3(targetValue, targetValue, targetValue), tweener);

            return(tweenOps);
        }
Exemplo n.º 5
0
 public UnityVector3ComponentTweener(V3Compnent v3Comp) : base()
 {
     V3Comp = v3Comp;
 }