select gameobject by tag unity code example
Example 1: find gameobject with tag
GameObject.FindWithTag("Enemy");
Example 2: find gameobject with tag
GameObject.FindGameObjectsWithTag("Enemy");
GameObject.FindWithTag("Enemy");
GameObject.FindGameObjectsWithTag("Enemy");