Beispiel #1
0
 public void UpdateDirection(float direction)
 {
     if (IsRight(direction))
     {
         currentDirection = VerticalMovement.Constants.Direction.Top;
     }
     else if (IsLeft(direction))
     {
         currentDirection = VerticalMovement.Constants.Direction.Down;
     }
 }
Beispiel #2
0
 public static float Call(VerticalMovement.Constants.Direction direction)
 {
     if (direction == VerticalMovement.Constants.Direction.Down)
     {
         return(DownInFloat);
     }
     else if (direction == VerticalMovement.Constants.Direction.Top)
     {
         return(TopInFloat);
     }
     else
     {
         return(NullInFloat);
     }
 }
Beispiel #3
0
 private MovementDirection()
 {
     currentDirection = VerticalMovement.Constants.Direction.Down;
 }