public bool CanInteractWith(PlayerInteractor interactor) { bool result = dayTime == interactor.playerType; if (collectableRef != null) { result = result && collectableRef.CanInteractWith(interactor); } if (deliverSlotRef != null) { result = result && deliverSlotRef.CanInteractWith(interactor); } return(result); }