コード例 #1
0
        public static LinearMotionReactionArgs SetInteractionAreaEvent(GameObject interactableObject, float lerpValue)
        {
            LinearMotionReactionArgs e = new LinearMotionReactionArgs
            {
                interactionObject = interactableObject,
                lerpAmount        = lerpValue
            };

            return(e);
        }
コード例 #2
0
        public override void StartReaction(object o, EventArgs e)
        {
            LinearMotionReactionArgs args = e as LinearMotionReactionArgs;

            rootObject.transform.position = Vector3.Lerp(orignalRootPosition, traversedRootPosition, args.lerpAmount);
        }