Unity 给FindGameObjectsWithTag排序
GameObject[] patrol = GameObject.FindGameObjectsWithTag ("Player").OrderBy (g => g.transform.GetSiblingIndex ()).ToArray ();
在编辑器下好使,但打包到Android平台好像并不好用
博客园Jason_c微信打赏码
如果本篇文档对你有帮助,打赏Jason_c根华子吧,他的私房钱被老婆没收了,呜呜!
![](https://files-cdn.cnblogs.com/files/Jason-c/%E5%BE%AE%E4%BF%A1%E6%89%93%E8%B5%8F%E7%A0%81.bmp)
GameObject[] patrol = GameObject.FindGameObjectsWithTag ("Player").OrderBy (g => g.transform.GetSiblingIndex ()).ToArray ();
在编辑器下好使,但打包到Android平台好像并不好用
如果本篇文档对你有帮助,打赏Jason_c根华子吧,他的私房钱被老婆没收了,呜呜!