Unity 给FindGameObjectsWithTag排序
GameObject[] patrol = GameObject.FindGameObjectsWithTag ("Player").OrderBy (g => g.transform.GetSiblingIndex ()).ToArray ();
在编辑器下好使,但打包到Android平台好像并不好用
博客园Jason_c微信打赏码
如果本篇文档对你有帮助,打赏Jason_c根华子吧,他的私房钱被老婆没收了,呜呜!
GameObject[] patrol = GameObject.FindGameObjectsWithTag ("Player").OrderBy (g => g.transform.GetSiblingIndex ()).ToArray ();
在编辑器下好使,但打包到Android平台好像并不好用
如果本篇文档对你有帮助,打赏Jason_c根华子吧,他的私房钱被老婆没收了,呜呜!