void PrepareObjectsToTakeorExamine(Room currentRoom) { for (int i = 0; i < currentRoom.InteractableObjectsinRoom.Length; i++) { string descriptionNotinInventory = interactableItems.GetObjectsNotinInventory(currentRoom, i); if (descriptionNotinInventory != null) { interactionDescriptionsInRoom.Add(descriptionNotinInventory); } InteractableObject interactableInRoom = currentRoom.InteractableObjectsinRoom[i]; for (int j = 0; j < interactableInRoom.interactions.Length; j++) { Interaction interaction = interactableInRoom.interactions[j]; if (interaction.inputAction.keyword == "examine") { interactableItems.examineDictionary.Add(interactableInRoom.noun, interaction.textResponse); } if (interaction.inputAction.keyword == "take") { interactableItems.takeDictionary.Add(interactableInRoom.noun, interaction.textResponse); } } } }