Data related to an object?

I wanna ask a weird question. When an object it deleted (like enemy), all data related to this object is deleted also or not (like Variable, etc…)?

Yes, if these variables are variables object, it’s destroyed with the object. Other variable (scene/global) aren’t.

But remember that each instance of the same object (for example, you dropped two times the same object on the scene) has its own object variables. For instance, if you have an object called “Enemy” and you put two “Enemy” on the scene, each of them will have its own object variables : example : its health, attack power…

That I know!