Question by
kaarelr · Feb 25, 2016 at 09:14 AM ·
unity 5gameobjectscript.enable and disable script
Enable/Disable other gameobject's scripts Unity 5
I know how to enable or disable a script that is in the same game object, but how do I do this if a script is in another gameobject.
The script that would work if the two script were in the same game object;
(GetComponent ("Car Controller") as MonoBehaviour).enabled = false;
Thanks
Comment