public void JoyStickInput(EDirX x, EDirY y) { if (StageManager.Instance.GameState == StageManager.EState.Play) { SetReservDirection(x, y); } }
void SetReservDirection(EDirX x, EDirY y) { reservDir.X = x; reservDir.Y = y; if (CurrentDir == Direction.Empty && reservDir != Direction.Empty) { SetNextPlace(); } }
public Direction(EDirX x, EDirY y) { X = x; Y = y; }
public void MovePlayer(EDirX x, EDirY y) { Player?.JoyStickInput(x, y); }