void OnDestroy() { if (carriedItem != null) { carriedItem.Drop(); } }
private void Drop() { if (_pickedUpItem == null) { return; } _pickedUpItem.Drop(); _pickedUpItem = null; }