阅读背景:

在脚本Unity之间传递布尔值

来源:互联网 

I was wondering, what is the most efficient way to pass boolean values between two javascript scripts in Unity. Right now the method I use - is to make a reference in script#1 to script#2 which contains the boolean, then then calling the script#2 function which contains the boolean, and the taking the value from the function. Is there an easier way? I tried to pass static bool values directly, yet is shows errors. Thank you in advance!I was wondering, what is the most efficient way




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: