Disabling/ enabling scripts,Disabling/ Enabling script while game is running.
I have two players both of them contain same controller script but with different name. Basically i want to disable one of scripts through script when the game starts and re enable it when global collision occurs. But i ran into problem. When play button is pressed in editor and script is enabled on object when game starts, if i try to disable the script it would still run although check mark is unchecked (disabled). Basically it would only let me disable script before the game starts and then it wouldn't run but if i re enable and disable it again it would still work. , I have two players both of them contain same controller script but with different name. Basically i want to disable one of scripts through script when the game starts and re enable it when global collision occurs. But i ran into problem. When play button is pressed in editor and script is enabled on object when game starts, if i try to disable the script it would still run although check mark is unchecked (disabled). Basically it would only let me disable script before the game starts and then it wouldn't run but if i re enable and disable it again it would still work.
Your answer

Follow this Question
Related Questions
Want to Make Mesh with script in an Egg Shape 0 Answers
How to run a script twice in a scene 0 Answers
Quiz Game Management 0 Answers
Invoking a Function From A Variblized Script And Object 1 Answer