component blue button in scripting ??

In Unity they have a little blue button that deactivates a game object. How do I replicate that in code.

I want to switch between 2 different scripts I have. One is running/walking the other is swimming/flying.

Combining the script isnt working so I thought that might be a better option. THXS :slight_smile:

I found it:

Camera.main.GetComponent(“MouseOrbit”).enabled = false;

:slight_smile: THXS anyway