How to solve it

Place the book on the shelf and put the books in order so the word 'ISLAND' is read on the book spines.

How it works

Restoring the missing book

Initially, one of the books is missing in the shelf, it’s simply deactivated. When InteractionWithItemUse is used with the book item, this gets enabled and becomes visible on the shelf. InteractionWithItemUse gets disabled at that point and a PointOfInterest gets activated.

image.png

This PointOfInterest activates the camera closeup and the interaction context to select the different books

image.png

Sorting the books

The object BookPuzzle contains the SortObjectsPuzzle component. On this component we set all the available slots on the shelf (PlaceableObjectSlot) and the available books (PlaceableObject)

In order to allow the player to select slots we also have an Interactive3DContext in BookPuzzle/InteractionSystem, which allows the player to select the different slots.

When one of these books interactives get selected, we call SelectSlot on SortObjectPuzzle

image.png

When 2 books are selected in succession, SortObjectsPuzzle starts a swap of the 2 objects.

SortObjectsPuzzle deactivates the InteractionSystem when a swap is ongoing

image.png