
Re: Setting a global variable to nil when activity changes
I had no idea the destroy function was ran when a scene restarted/was over/etc.! Thanks a lot, I followed what you said and made the script deactivate if another object of the same type was created, and in the destroy function made it delete the global values, which worked out perfectly.
Once again thanks!
