Exemple #1
0
 public void JoyStickInput(EDirX x, EDirY y)
 {
     if (StageManager.Instance.GameState == StageManager.EState.Play)
     {
         SetReservDirection(x, y);
     }
 }
Exemple #2
0
    void SetReservDirection(EDirX x, EDirY y)
    {
        reservDir.X = x;
        reservDir.Y = y;

        if (CurrentDir == Direction.Empty && reservDir != Direction.Empty)
        {
            SetNextPlace();
        }
    }
Exemple #3
0
 public Direction(EDirX x, EDirY y)
 {
     X = x;
     Y = y;
 }
Exemple #4
0
 public void MovePlayer(EDirX x, EDirY y)
 {
     Player?.JoyStickInput(x, y);
 }