Hi there,
I have a once scene approach in my project. I am having issues with thinking of a good way to handle all the level switching, value resetting and stuff like that...
Pretty much all my level data is in XML, so to get data for a level I would have path like this: /root/difficulty[1]/category[1]/lesson[1]/challenge[1]
There are 3 difficulties in total, in each difficulty there is 10 categories and in each category there is about 3-5 lessons. And each lesson has 10 challenges (different types of mini-game)
To start a level I would have to pick a difficulty, then category, and then lesson. Then based on which type of mini-game lesson have I would have to activate that mini-game and it's interface and then it would load the XML values. After the mini-game finishes though, how would i reset all it's values so that it may be launched again later on? Do I literally have to go and reset each variable and delete gameobjects? Or is there an easy way like, creating fsm from template, and then just deleting the fsm, and then creating again from template and so on? Maybe Store the different mini-games as prefabs and instantiate and delete or store the mini-games in different scenes, and the rest of the stuff like game logic and interface in one?