get component by tag unity code example Example: find gameobject with tag GameObject.FindGameObjectsWithTag("Enemy");