I’ve read somewhere that we shouldn’t use global variables and global functions.Since my game use storyboard,and other local functions need to acces my variables,the variables needs to be global.All my variables are declared in the scene:createScene function.
What should I do in this case?If I continue using global variables how will my game be affected?Is there anyway to change from global to local,without me having to move the variables in other functions.
Thanks!