- Home /
Transfer data between scenes + saving it C#
Greets. How can i transfer data immediately from scene A to scene B? I just want to do that: I play a game in scene and die here. My score automatically should move from A to B. B is High score board. It should move even when i am not moving to scene B. I can quit app, but score board will update right after match ends. Second problem: When i transfer that data how can i storage it without losing when turn off game? Scene B looks like:
1: (score1)
2: (score2)
etc...
10: (scene10)
I made sorting etc. Just i have no idea about that data. I stuck here over 18h and still no solution. If u know what to do please help. If its possible please use C#.
Answer by romamik · Oct 05, 2015 at 02:52 PM
Not sure if I understood you right, but may be you can use singleton: http://wiki.unity3d.com/index.php/Singleton