Subscribte to event update in other class

Hi, urhofans.

I have a own class when I would like to subscribe an event update.
Can I do it? Must I create a class like LogicComponent, for example?

Thank you very much! :smiley:

You can definitely do it, and that’s one of the main concepts :smiley:

Example using LogicComponent: github.com/urho3d/Urho3D/blob/m … ehicle.cpp You could also use a regular Component.

Here’s another option, inherit from a relatively lighter weight Object class if your class fits more of the subsystem concept: github.com/urho3d/Urho3D/blob/m … eCache.cpp

All depends on your class.

Thanks you!
It was very useful :stuck_out_tongue: