My game is a 2d top down RPG which has a house as its main game scene (loaded as Single). The player has multiple minigames( these minigames are the additive scenes that i am asking about) around the house.
The idea was for the player to press the minigame button that was in the house, play the minigame and receive his experience points for playing the minigame, but i'm having trouble doing this last one because i can't find a way to execute a function right after the minigame scene unloads.
I also tried to access the main game scene while i was in the minigame addictive scene but unity crashed when i tried that.
What i got now (and that works) is to give the experience points to the player when he presses the minigame button, but this is, obviously, a very bad solution.
So i wanted to ask if anyone knows a better solution for this problem?
![Main Game Scene with minigame button][1]
![Minigame Scene loaded as Additive][2]
[1]: /storage/temp/115350-maingame.png
[2]: /storage/temp/115351-minigamescene.png
↧