I have just finished implementing the the mechanic I will use to tell the story. The functionality is quite simple since it works similar to a lever when player walks up to a “note” object, looks at presses “E” and gets a message on a screen.
The problem I did encounter was the fact that I had to add another panel to my canvas that I use for in game menu, which doesn’t seem like a problem at first, but it was when all of my menus were working. At which point I remembered that when looking for child objects in the menu I used the function that finds them by their number in the hierarchy. This obviously stopped working once I added a new child shifting all of them by one thus breaking everything. Let’s just say I have learned my lesson and will use names in future.
0 comments