public bool CheckWin() { if (CurrentRoom.Equals(EndingRoom)) { return(true); } else { return(false); } }
private void SetInitialCoordinatesOfCurrentRoom() { for (int i = 0; i < ROOM_LAYOUT.GetLength(0); i++) { for (int j = 0; j < ROOM_LAYOUT.GetLength(1); j++) { if (CurrentRoom.Equals(ROOM_LAYOUT[i, j]) || ROOM_LAYOUT[i, j].Contains(CurrentRoom)) { Coordinates[0] = i; Coordinates[1] = j; } } } }