public void CheckReassignedSlot(UIShipFleetSlot newShipSlot) { //if (selectedShipSlot != newShipSlot) return;\ if (selectedShipSlot != null) selectedShipSlot.DeselectSlot(); selectedShipSlot = newShipSlot; selectedShipSlot.SelectSlot(); }
public void SetSelectedSlot(UIShipFleetSlot newShipSlot) { //Debug.Log("Setting Slot"); if (selectedShipSlot != null) selectedShipSlot.DeselectSlot(); if (selectedShipSlot == newShipSlot) { selectedShipSlot.DeselectSlot(); selectedShipSlot = null; } else { selectedShipSlot = newShipSlot; selectedShipSlot.SelectSlot(); } //Debug.Log(shipSlot.name); }