public void SetGridType(GridSlot slot, GridSlotManager.GridSlotType new_type) { if (slot != null) { slot.SetSlotType(new_type); if (new_type == GridSlotManager.GridSlotType.GST_NO_INTERACTABLE) { slot.GetSpriteRenderer().enabled = false; } else if (new_type == GridSlotManager.GridSlotType.GST_INTERACTABLE) { slot.GetSpriteRenderer().enabled = true; } } }