示例#1
0
 void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.tag == ETags.Player.ToString())
     {
         print("player reached checkpoint");
         GameEvents.CheckpointReached(FinalPosition);
     }
 }