Answers for "ontriggerenter2d"

C#
2

ontriggerenter2d

void OnTriggerEnter2D(Collider2D col)
{
	Debug.Log(gameObject.name + " Collided");
}
Posted by: Guest on January-11-2021
1

ontriggerenter2d

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

ontriggerenter2d

void OnTriggerEnter2D(Collider2D col)
    {
        Debug.Log(col.gameObject.name + " : " + gameObject.name + " : " + Time.time);
        spriteMove = -0.1f;
    }
Posted by: Guest on December-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language