Answer the question
In order to leave comments, you need to log in
Why are collisions not handled immediately?
private void OnCollisionExit2D(Collision2D coll)
{
if (coll.gameObject.tag == "Ground")
{
playerMoving.isGrounded = false;
}
if (coll.gameObject.tag == "spike")
{
healthScript.health -= spike.damage;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question