public static LinearMotionReactionArgs SetInteractionAreaEvent(GameObject interactableObject, float lerpValue) { LinearMotionReactionArgs e = new LinearMotionReactionArgs { interactionObject = interactableObject, lerpAmount = lerpValue }; return(e); }
public override void StartReaction(object o, EventArgs e) { LinearMotionReactionArgs args = e as LinearMotionReactionArgs; rootObject.transform.position = Vector3.Lerp(orignalRootPosition, traversedRootPosition, args.lerpAmount); }