u3d接口回调的方式Simon Chen 2015-02-05 149 words One minute Contents 在u3d开发中,如果想传递一个接口道另一个脚本中回调,需要传递当前脚本绑定的游戏对象比如1 this.gameObject; 在接收接口的脚本中,获取接口的方法如下1 Interface myInterface = (Interface) GetComponent(typeof(Interface)); 参考:http://answers.unity3d.com/questions/60357/getcomponent-and-interfaces.htmlPlease enable JavaScript to view the comments powered by Gitalk.