|
Init(args)
Scripting Reference
|
◆ Awake()
Awake is called when the object is being loaded. If the object has been attached to an active GameObject at edit time, then Awake is called when the scene or prefab that contains the GameObject is being loaded. Awake is called regardless of whether the component is enabled. If the object is attached to an active GameObject at runtime, then Awake is called immediately. If the object is attached to an inactive GameObject, then Awake will only be called when the GameObject becomes active. A class that has the Service attribute receives the event when services are being initialized, after all service instances have been created. Awake and IOnEnable.OnEnable are called (in that order) immediately for all enabled and active objects when a scene or a prefab is being loaded, IStart.Start only gets called after a short delay, just before the first IUpdate.Update event. |