onTriggerEnter2D jnity code example
Example: onTriggerEnter2D jnity
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;
}