There is a code that searches for some objects by tag.
public List<GameObject> Targets; Targets = GameObject.FindGameObjectsWithTag("Point").ToList(); Objects other than coordinates differ by name (Point 1, Point 2, etc.)
After this operation I have a collection
Point 5, Point 4, Point 3 .. - Descending. Although the objects were created in duplicate.
In this regard, a couple of questions:
- How to properly sort this collection
- What is the reason for filling this collection.