So far, we have managed to implement navigation around the maze as well as a timer. As we initially planned, we will now need to make it possible for the player to collect objects (for example, med packs and keys) to escape the maze. To collect the objects, we will use collision detection and a script that will destroy the objects collected. First, let's create some items and add them to the scene:
medpack, then change its position to (x=3, y=1, z=6), and its scale to (x=0.5, y=0.5, z=0.2).
texture_medpackin the folder Assets | chapter3 | chapter3_pack. Apply the texture
texture_medpackto the cube.