Questions about the Event Manager:
Does it matter if you re-register something for update (to change it), without unregistering the old one first?
Lua Code:
-- Register something for update
EVENT_MANAGER:RegisterForUpdate("Something", ...)
-- Re-register it to change it, without unregistering the old one
EVENT_MANAGER:RegisterForUpdate("Something", ...)
Does it really matter if you try to UnregisterForUpdate if it isn't registered?
Lua Code:
-- unregister it (maybe this is done in normal code somewhere & we know its registered
EVENT_MANAGER:UnregisterForUpdate("Something")
-- But maybe in the settings menu we don't know if its registered, so unregister it just in case
EVENT_MANAGER:UnregisterForUpdate("Something")
Is there some way to check to see if something is registered with the event manager?
Besides creating a variable myself to track whether or not you have "Something" registered for update?