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