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