Cannot destroy actor

My code literally like this

The class is extends Behavior, and I add it as component, so I need to destroy actor that is on scene, with component that includes that code

[Original Post on Discord](

*by user 697872771497328640*

Hey :wave:
Destroy is a function, you need to add () after the function name in order to call it.

Change your code to this.gameObject.destroy()

Ahh, thank you, now I feel dumb :sweat_smile::joy::joy:

by user 697872771497328640

No worries :slight_smile: