This repository was archived by the owner on Mar 25, 2020. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 5
Magic methods
pointcache edited this page Jan 15, 2017
·
3 revisions
URSA makes use of a lot of "magic methods" for systems, the performance impact on small amount of systems is minimal, and it provides with a much simpler mechanism for events than using complex interfaces/managers.
To use those, you must make sure that their relay component is a parent or on the same GameObject that your user script is. Just create a method with matching name to receive event. This is the list of all magic methods and where are they coming from:
##InitializationEventsReceiver
- OnGlobalSystemsEnabled()
- OnLoadLocalData()
- OnLoadersEnabled()
- OnSystemsEnabled()
- OnUiEnabled()
These are explained on the page of InitializerSystem
- OrderedOnEnable()
- OrderedFixedUpdate()
- OrderedUpdate()
