I want to Ignore Collision only under certain circumstances. But now, once I ignore it, it stays ignored. How do make it effective again? I do not see this in the documentation anywhere.
void Update()
{
//if(oneWayCheck)
if(oneWayCheck == true)
{
Physics2D.IgnoreCollision(platformColliders[0], playerBoxCollision);
}
}