示例#1
0
 void OnTriggerExit2D(Collider2D col)
 {
     if (col.CompareTag("Player") && !room.cleared)
     {
         room.Enter();
         doors.SetActive(true);
     }
 }