how to check if a tag is in game unity code example
Example: unity how to check how many gameobject of a tag exists
if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) {
// Do something
}
if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) {
// Do something
}