private void UpdateFlagShip()
 {
     if (this.flagShipInfo == null)
     {
         this.flagShipInfo = base.GetComponent<ShipResultInfo>();
     }
     if (this.flagShipInfo != null)
     {
         this.flagShipInfo.UserShip = this.opponent.ships[0];
     }
 }
 private void UpdateShip()
 {
     if (this.userShip == null)
     {
         foreach (GameObject obj2 in this.needHideItemsIfNull)
         {
             if (obj2 != null)
             {
                 obj2.SetActive(false);
             }
         }
     }
     else
     {
         this.shipInfo = base.GetComponent<ShipResultInfo>();
         this.shipInfo.Ship = this.userShip;
         this.flagObj.SetActive(this.isFlag);
     }
 }
 public void SetResult(ShipInWar ship, ShipInWarResult result, ShipResultInfo parentShip)
 {
     this.ship = ship;
     this.shipResult = result;
     this.shipResultInfo = parentShip;
 }
 private void UpdateShipInfo()
 {
     this.showShipInfo = base.GetComponent<ShowCommonShipInfo>();
     UserShip shipById = GameData.instance.GetShipById(this.dockInfo.shipId);
     if ((this.showShipInfo != null) && (shipById != null))
     {
         this.showShipInfo.userShip = shipById;
         this.showShipInfo.UpdateShip((UserShip) null);
         if (this.isFinished)
         {
             this.showShipInfo.SetHpIsFull();
         }
     }
     this.shipResultInfo = base.GetComponent<ShipResultInfo>();
     if (this.shipResultInfo != null)
     {
         this.shipResultInfo.UserShip = shipById;
     }
 }
 private void UpdateShipInfo()
 {
     if (this.flagShipInfo == null)
     {
         this.flagShipInfo = base.GetComponent<ShipResultInfo>();
     }
     if (this.flagShipInfo != null)
     {
         UserShip shipById = GameData.instance.GetShipById(this.ShipId);
         if (this.index == 0)
         {
             this.flagShipInfo.IsForceFlag = true;
         }
         this.flagShipInfo.UserShip = shipById;
         this.specialStatus.gameObject.SetActive(false);
         if (shipById.IsInExplore)
         {
             this.specialStatus.gameObject.SetActive(true);
             this.specialStatus.SetSprite("statusExplore");
         }
         else if (shipById.IsInRepair)
         {
             this.specialStatus.gameObject.SetActive(true);
             this.specialStatus.SetSprite("statusInrepair");
         }
         this.oilWarningObj.SetActive((shipById.maxProps.oil - shipById.props.oil) > 0);
         this.ammoWarningObj.SetActive((shipById.maxProps.ammo - shipById.props.ammo) > 0);
     }
 }