title: Disabling a Script attached to a game object in Unity C#
body: <p>I have an update function that will check if something is equal to true and if it is equal to true it will run some code but then I want the whole script to be disabled. Please help, thanks!</p>