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