how to pass variable from one object to another object?
Thank you
how to pass variable from one object to another object?
Thank you
hello
Lets say you have 2 scripts, one named Script1, and the other named Script2.
and script1 has a public var named var1.
what you can do on script2, to call the var is:
var myScript1 : Script1
function Start(){
myScript1.var1 = "your value"
}
Thanks it’s exactly what i need !
Thanks again.