예제 #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         PlayerEvents.EventsHappen(gameObject.tag, time);
     }
 }
예제 #2
0
 void OnTriggerEnter2D()
 {
     PlayerEvents.EventsHappen(gameObject.tag, time);
 }