public void SetListShipDetailButtons(ShipModel ship, int deckId, IOrganizeManager manager = null, int ShipIndex = 0, MonoBehaviour CallBackTarget = null) { this.isDeckShipDetail = false; this.ship = ship; bool flag = (manager != null) ? manager.IsValidChange(deckId, ShipIndex, ship.MemId) : this.IsValidChange(deckId, ShipIndex, ship.MemId); this.LockSwitch.setIcon(ship); this.LeftButton.SetActive(false); this.setChangeButton(this.RightButton, flag, CallBackTarget); this.buttonManager.nowForcusButton = ((!flag) ? null : this.RightButton); this.LockSwitch.SetActive(true); GameObject backBG = (!(CallBackTarget == null)) ? CallBackTarget.get_gameObject() : null; this.setBackBG(backBG); }
public void SetListShipDetailButtons(ShipModel ship, int deckId, IOrganizeManager manager = null, int ShipIndex = 0, MonoBehaviour CallBackTarget = null) { isDeckShipDetail = false; this.ship = ship; bool flag = manager?.IsValidChange(deckId, ShipIndex, ship.MemId) ?? IsValidChange(deckId, ShipIndex, ship.MemId); LockSwitch.setIcon(ship); LeftButton.SetActive(isActive: false); setChangeButton(RightButton, flag, CallBackTarget); buttonManager.nowForcusButton = ((!flag) ? null : RightButton); LockSwitch.SetActive(isActive: true); GameObject backBG = (!(CallBackTarget == null)) ? CallBackTarget.gameObject : null; setBackBG(backBG); }