예제 #1
0
 private int MoveDirection()
 {
     if (player.InputDisabled)
     {
         return(0);
     }
     return(playerInput.IsLeft() ? -1 : playerInput.IsRight() ? 1 : 0);
 }