I have an OnCollisionEnter2D function that registers the y position of a platform that has collided with something. How can I tell if the player has jumped on a specific platform more than once?
void OnCollisionEnter2D(Collision2D coll)
{
foreach(ContactPoint2D contact in coll.contacts)
{
currentPlatformPosition = (coll.transform.position.y);
}
}