Answer the question
In order to leave comments, you need to log in
Object in canvas and collision2d?
There are objects in the canvas, when they reach the collider, they must interact with it.
Why might not work?
void OnCollider2D (Collision2D coll)
{
if (coll.gameObject.tag == "BorderUp")
{
_MobUpGo.enabled = false;
Debug.Log("yes");
}
}
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