hi, i have 2 javascript components attached to an empty. what i would like to be able to do is after hitting a gui button activate 1 script component that wasnt activated but attched when the program starts and stop the other one. any ideas?
Use scripting to get the Component object you want, then enable or disable it.
Component myComponent = GetComponent("ScriptName");
myComponent.enabled = false;