Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

oncollisionenter2d

void OnCollisionEnter2D(Collision2D collision) //Make sure to put this out of Voids
    {
        if (other.gameObject.tag == "Object")
        {
            Debug.Log ("Collided");
    	}
    }
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+8 =