Hello!
I've read all topics about it but somehow I cannot make it work.
How can I disable a script using javascript in Unity 5+?
ScriptName.enabled = false;
GetComponent("ScriptName").enabled = false;
GetComponent(ScriptName).enabled = false;
None of the above codes are working for me.
Thanks if you can help.
↧