Esempio n. 1
0
 private void OnTriggerExit2D(Collider2D other)
 {
     if (!isOpened && other.CompareTag("Player"))
     {
         ItemManagement inventory = other.GetComponentInChildren <ItemManagement>();
         inventory.AddChest(null);
     }
 }