P
piranha305
Guest
I am trying to figure out what the best approach is i have a manager instance obj_game, that is a "Singleton" throughout the game and manages game state
I am trying to figure out what the best way to access its instance variables are
I have give them instance a name so i can reference or change GameManager.state (GameManager is the name of the instance).
or is it better to run
this is also a special case because there will only ever be one instance in the room, but would the same thing apply to having multiple instances and filtering out by the instance you want to modify?
I am trying to figure out what the best way to access its instance variables are
I have give them instance a name so i can reference or change GameManager.state (GameManager is the name of the instance).
Code:
GameManager.state = states.IDLE;
Code:
with(obj_game) {
state = states.IDLE
}