private void ReleasePickable() { if (_currentPickable != null) { _currentPickable.Release(); } Main.instance.eventManager.TriggerEvent(GameEvent.OnReleasePickable); if (_currentPickableReceiver != null) { if (_currentPickable.GetCurrentReceiver() != null) { _currentPickable.GetCurrentReceiver().RemovePickable(); } _currentPickableReceiver.OnReceiveIngredient(_currentPickable); } _currentPickableReceiver = null; _currentPickable = null; }