public void DungeonPan(Point sourceRoom, Point destinationRoom, Direction direction) { if (DarkMode) { DungeonManager.JumpToRoom(destinationRoom.Y, destinationRoom.X, direction); return; } if (_worldState == WorldState.DungeonPanning) { return; } _panAnimation = new PanAnimation(direction); _sourceScene = _dungeonManager.BuildPanScene(sourceRoom.Y, sourceRoom.X); _destinationScene = _dungeonManager.BuildPanScene(destinationRoom.Y, destinationRoom.X); _panDestination = destinationRoom; _world = new PanningWorld(this); _worldState = WorldState.DungeonPanning; }