Exemplo n.º 1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         PlayerEvents.EventsHappen(gameObject.tag, time);
     }
 }
Exemplo n.º 2
0
 void OnTriggerEnter2D()
 {
     PlayerEvents.EventsHappen(gameObject.tag, time);
 }