I have a platform with a game object attached to it that checks when something enters it, when my player enters it, it will disable its collider and when it exits it will re enable it. what it does is disable, collide with the platform once, and when it comes back down it disables it again for some reason… i have a gameobject attached to the ball with a trigger.
void OnTriggerEnter2D(Collider2D other){
player.collider2D.enabled = false;
}
void OnTriggerExit2D(Collider2D other){
player.collider2D.enabled = true;
}
the script on the platform gameObject^