Hello I have a counter that continues to count on trigger but I’m trying to get it to stop when the object hits a player but I don’t know where to go from here
public static int Counter;
void OnTriggerEnter2D(Collider2D col)
{
if (col.gameobject.name == “Destroyer”)
{
Counter++;
Destroy(this.gameObject);
}
if (col.gameObject.tag == “Player”)
{
}
}