Пример #1
0
    public void DisplayRoomText()
    {
        //clearing the screen and unpacking the next room
        ClearCollectionsForNewRoom();
        UnpackRoom();
        roomNavigation.ChangeBGM();

        //combines the arrays with interactables in the room and the description, prints them out sequentially with line breaks inbetween
        string joinedInteractionDescriptions = string.Join("\n", interactionDescriptionsInRoom.ToArray());
        string combinedText = roomNavigation.currentRoom.desctiption + "\n" + joinedInteractionDescriptions;

        AddNewLine(combinedText);
    }