Answers for "oncollisionenter2d example"

C#
0

oncollisionenter2d

void OnCollisionEnter2D(Collision2D collision) //Make sure to put this out of Voids
    {
        if (other.gameObject.tag == "Object")
        {
            Debug.Log ("Collided");
    	}
    }
Posted by: Guest on February-22-2021

C# Answers by Framework

Browse Popular Code Answers by Language