ontriggerenter2d api code example
Example: ontriggerenter2d
void OnTriggerEnter2D(Collider2D col)
{
Debug.Log(col.gameObject.name + " : " + gameObject.name + " : " + Time.time);
spriteMove = -0.1f;
}
void OnTriggerEnter2D(Collider2D col)
{
Debug.Log(col.gameObject.name + " : " + gameObject.name + " : " + Time.time);
spriteMove = -0.1f;
}