Exemple #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;
 }
Exemple #2
0
 public MTJumpByState(MTJumpBy action, GameObject target)
     : base(action, target)
 {
     Delta  = action.Position;
     Height = action.Height;
     Jumps  = action.Jumps;
     P      = StartPosition = target.transform.localPosition;
 }
Exemple #3
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);
 }
Exemple #4
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);
 }