I NEED HELP…
Collider and RigidBody2D
are applied to the moving object 'cat'
. I also checked the isTrigger
of the collider object in the 'flag'
, which is the object that will collide. What’s the problem?
Even if the cat moves and reaches the flag, nothing appears in the console window. Editor version updated to 2022.3.10
a few days ago. I also use M1 Mac.
Thank you, brothers.
(my code)
void OnTriggerEnter2D(Collider2D other)
{
Debug.Log("Goal");
SceneManager.LoadScene("ClearScene");
}