Example #1
0
 private void setItemDetected(InteractableItem newItem)
 {
     if (newItem != detectedItem && newItem.canInteract)
     {
         this.setItemUndetected();
         detectedItem = newItem;
         detectedItem.onItemDetected();
     }
 }