Example #1
0
 public MTJumpByState(MTJumpBy action, GameObject target)
     : base(action, target)
 {
     Delta = action.Position;
     Height = action.Height;
     Jumps = action.Jumps;
     P = StartPosition = target.transform.localPosition;
 }
Example #2
0
 public MTJumpToState(MTJumpBy action, GameObject target)
     : base(action, target)
 {
     Delta = new Vector3 (Delta.x - StartPosition.x, Delta.y - StartPosition.y,Delta.z - StartPosition.z);
 }