Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

ontriggerenter2d

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