I am using SendMessage in JS, and am passing a single value with it, like this.
motherGameObject.SendMessage("adjustDelay", delay);
The receiving function looks like this…
////ADJUST DELAY, Called from trigger node.
function adjustDelay(delay){
print("dbCopter, call from node, adjust delay" + Time.time);
print("delay " + delay);
delay = delay;
}
Now, the function is received, and the value delay is translated, or received as well. However, later in code when I call delay, the value is 0, not what is was when passed.
Any ideas?