- Home /
The global function.
Is it possible to use one function at all stages/scenes?
I'd like to do, player looking for, for example: cube, and at the end of the game counted to how much a player has collected. I know it can be done if I have one scene but if there are many more?
You have asked 12 questions on this site at the time of writing, but have marked none as correctly answered. Please review all of your questions and use the tick to mark the answers you have received which helped you the most.
Answer by Eric5h5 · Mar 01, 2014 at 03:47 PM
Attach a script to a game object and use DontDestroyOnLoad so it's not removed when you change scenes.
Your answer
Follow this Question
Related Questions
Static function and variables error 2 Answers
Accessing non static members in a static function argument?? 1 Answer
Adding static functions 2 Answers
How do you achieve variables and functions that are global between scenes? What is the BEST way? 1 Answer
siple question...how to comunicate with other script 5 Answers