get gameobject tag code example
Example 1: how to find the tag of an objecdt in unity
if(FindGameObjectsWithTag(Player){
Debug.Log("FoundPlayer")
}
Example 2: unity check tag
gameObject.tag
if(FindGameObjectsWithTag(Player){
Debug.Log("FoundPlayer")
}
gameObject.tag