private void SelectSlot(DrawSpot spot) { SelectedSpot = spot; SelectedSpot._Selected = true; _InventoryManager.SelectItem(spot.mySlot.ItemInSlot); //_InventoryManager.selectedItem = spot.mySlot.ItemInSlot; }
public override void LoadContent(string path, ContentManager content) { base.LoadContent(path, content); for (int i = 0; i < _InventoryManager.capacity; i++) { DrawSpot spot = new DrawSpot(extraTex); _PanelSpots.Add(spot); } }
private void DeselectSlot() { if (SelectedSpot == null) { return; } SelectedSpot._Selected = false; SelectedSpot = null; if (_InventoryManager.selectedItem != null) { _InventoryManager.selectedItem = null; } }