Hello
so i am having a little problem with my ontriggerenter script:
void OnCollisionEnter2D(Collision2D other)
{
if (other.gameObject.tag == "ground")
{
Cground = true;
jumping = false;
animator.SetBool("jumping", jumping);
Debug.Log(Cground);
}
Debug.Log("touch");
Debug.Log("Touched! " + other.gameObject.name + "; " + other.gameObject.tag + "; " + Cground);
}
this is what i have so far but i only want the code in the if statement to g off when i collide with the edgecollider on my gameobject. i currently have 2 different colliders on this gameobject an edge collider and a polygon collider. none of the code in the if statement should be triggered when the polygon collider collides with something. im happy for any help i can get.