Which script should I use, to turn off the flame.prefab when i launch water bubles in it.
… flameOn=false;
I’m afraid you’ll have to provide a bit more detail if you want someone to help. This question is simply way too vague.
you can reference the script, then use
public ScriptName script;
void Awake () {
script.enabled = false;
}
(this is C#, tell me if js is needed)
I am doing in js please.
JavaScript:
var script : ScriptName;
function Awake() {
script.enabled = false;
}
thanks
I try to put the script, but it isn’t work…
where I put he?