用法
const tag = "fish";
GameObject[] fishs = GameObject.FindGameObjectsWithTag(fish);
注意 获取的顺序是随机的 不是面板上排好的顺序
排序
const fishTag= "fish";
//排序前
GameObject[] fishs = GameObject.FindGameObjectsWithTag( fishTag );
//
//排序
GameObject[] fishOrderly = fishs.OrderBy( temp => temp.transform.GetSiblingIndex() ).ToArray();