check if tag exists 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
}