Пример #1
0
 public void CheckReassignedSlot(UIShipFleetSlot newShipSlot)
 {
     //if (selectedShipSlot != newShipSlot) return;\
     if (selectedShipSlot != null)
         selectedShipSlot.DeselectSlot();
     selectedShipSlot = newShipSlot;
     selectedShipSlot.SelectSlot();
 }
Пример #2
0
    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);
    }