how to find a gameobject with a tag unity code example
Example 1: unity get all by tag
GameObject[] arrayGo = GameObject.FindGameObjectsWithTag("myTag");
Example 2: find gameobject with tag
GameObject.FindGameObjectsWithTag("Enemy");
GameObject[] arrayGo = GameObject.FindGameObjectsWithTag("myTag");
GameObject.FindGameObjectsWithTag("Enemy");