u3d接口回调的方式
Contents
在u3d开发中,如果想传递一个接口道另一个脚本中回调,需要传递当前脚本绑定的游戏对象
比如
|
|
在接收接口的脚本中,获取接口的方法如下
|
|
参考:http://answers.unity3d.com/questions/60357/getcomponent-and-interfaces.html