find object with tag in gameobject code example
Example 1: unity get all by tag
GameObject[] arrayGo = GameObject.FindGameObjectsWithTag("myTag");
Example 2: how to find object by ag unity
yourObjects = GameObject.FindGameObjectsWithTag("Respawn");
//Youtube: https://www.youtube.com/channel/UCBDHOr2HKOuMiWUj-Pu-AGA
Example 3: find gameobject with tag
GameObject.FindGameObjectsWithTag("Enemy");