2016-07-31 |

某个GameObject有一个名为MyScript的脚本,该脚本中

A
B
C
D
答案:
解释:
A.GetComponent<MyScript>().DoSomething()
B.GetComponent<Script>(“MyScript”).DoSomething()
C.GetComponent< MyScript >().Call(“DoSomething”)
D.GetComponent<Script>(“MyScript”). Call(“DoSomething”)

A

发表评论

    评价:
    验证码: 点击我更换图片
    最新评论