예제 #1
0
 public void TakeMovement_Step()
 {
     ShapeMover.Move_Custom(this, movementOrder.lMovementOrder[CurrentStep]);
     CurrentStep++;
     if (CurrentStep >= TotalMovementSteps)
     {
         if (repeatCount > 0)
         {
             // Reset if repeatable
             repeatCount--;
             CurrentStep = 0;
         }
         else if (repeatCount == -44)
         {
             // Reset forever
             CurrentStep = 0;
         }
         else
         {
             CurrentStep        = -1;
             TotalMovementSteps = -1;
             movementOrder      = null;
             Has_MovementOrders = false;
         }
     }
 }
예제 #2
0
 public void Move_DownRight()
 {
     ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.down_right);
 }
예제 #3
0
 public void Move_DownLeft()
 {
     ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.down_left);
 }
예제 #4
0
 public void Move_UpRight()
 {
     ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.up_right);
 }
예제 #5
0
 public void Move_UpLeft()
 {
     ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.up_left);
 }
예제 #6
0
 public void Move_Down()
 {
     ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.down);
 }
예제 #7
0
 public void Move_Up()
 {
     ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.up);
 }