So, I have made a variable that is a float called Number. This number has a default value of 0. The player has collected 20 objects and the number gets set to 20. Then, it will transfer you to a win level. However, in the Win Level, the value of the Number Variable is 0. How do I transfer the data to the other level from the Numbers Variable? Help is appreciated! Thanks!
You can store this kind of data in classes that persist across levels. So for example in a player state class or game instance.
Can you show me how to do it with a game instance? Thanks!