I’m using a script to activate/deactivate script attached on a specific object:
var OBJWithScript : GameObject;
var ScriptName : String;
//etc...
function DisableScript () {
OBJWithScript.GetComponent(ScriptName).active = false;
}
function EnableScript () {
OBJWithScript.GetComponent(ScriptName).active = true;
}
How can i select object that’s is in another scene?