public void DeselectSlot() { if (selectedSlot != null) { if (selectedSlot.LootItem != null) { EntityAction entityAction = selectedSlot.LootItem.GetComponent <EntityAction>(); if (entityAction != null) { entityAction.OnMoveStart -= DeselectOnUse; } } playerMoveController.DeselectAction(); } selectedSlot = null; RefreshInventory(playerEntity.Cell); }