unity c# find objects by tag or script code example
Example 1: unity get all by tag
GameObject[] arrayGo = GameObject.FindGameObjectsWithTag("myTag");
Example 2: find gameobject with tag
GameObject.FindWithTag("Enemy");
GameObject[] arrayGo = GameObject.FindGameObjectsWithTag("myTag");
GameObject.FindWithTag("Enemy");