public JJumpByState(JJumpBy action, GameObject target) : base(action, target) { Delta = action.Position; Height = action.Height; Jumps = action.Jumps; P = StartPosition = target.transform.localPosition; }
public JJumpToState(JJumpBy action, GameObject target) : base(action, target) { Delta = new Vector3(Delta.x - StartPosition.x, Delta.y - StartPosition.y, Delta.z - StartPosition.z); }