unity how to get a gameobject with tag and get it 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");