How do I trigger a function right after a additive scene ends?
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?
Your answer
Follow this Question
Related Questions
Fade between scenes 0 Answers
Switching back and fourth between scenes help (script) 0 Answers
How to move to next scene using scene manager? 3 Answers
Why isn't my start screen loading? 0 Answers