implement gameobject setactive method

hello!
I am using my own class(“selectableunitcomponent”),and in another script,I wan to use setactive function(of gameobject),but I did not know how to implement,inherit or to use the set active function on this class.

I will be very grateful if you guys have a solution!

This doesn’t seem like a Burst issue - were you meaning to post this on the main scripting forum? Unity Engine - Unity Discussions

I am so sorry, kind of a noob here

That’s totally fine, we’re here to try and point you at the right places to help!