Activate CollisionBox2D while attacking or not ?

Hey,

just a short question about my game logic. Is it better to disable the attack CollisionBox2D so it is not visible or should I deactivate my addDmg function ?

And takes the disabling of components ( I think I can do it with script.enable = false ) more recourses ?

Regards,

LifeArtist

Create a static class (bool or int) to condition the CollisionBox2D inside another code. Thus, you can control the activation function of collision.