public void ChangeRoom(string nextRoomName, string direction) { player.CollisionHandler = new EmptyCollisionHandler(player); gameState = new RoomTransitionGameState(this); currentRoom.ChangeRoom(nextRoomName, direction); roomIndex = Array.FindIndex(rooms, x => x == nextRoomName); player.ActiveItems.Clear(); player.ItemCounts[ItemType.Clock] = 0; }
public void ChangeRoom(string nextRoomName) { gameState = new RoomTransitionGameState(this); currentRoom.ChangeRoom(nextRoomName); }