Example #1
0
 public static void MoveToCentre(Transform objectToMove, int speed)
 {
     MovementJobs.MoveObjects(new [] { objectToMove }, new [] { Vector3.zero }, speed);
 }
Example #2
0
 public static void MoveToLeft(Transform objectToMove, int speed, int leftDistance)
 {
     MovementJobs.MoveObjects(new [] { objectToMove }, new [] { new Vector3(-leftDistance, 0, 0) }, speed);
 }