private void UpdateFleet()
 {
     if (!this.isUpdatingFleet)
     {
         this.isUpdatingFleet = true;
         this.RemoveAllShips();
         this.shipObjects = new List<GameObject>();
         List<UserShip> userShips = this.selectedFleet.GetUserShips();
         bool isInExplore = this.gameData.IsFleetInExplore(this.selectedFleet.id);
         for (int i = 0; i < userShips.Count; i++)
         {
             GameObject item = GameObjectUtil.InstantiateItemAsChildOf(this.fleetShipPrefab, this.shipParent.gameObject);
             item.GetComponent<PVEPrepareFleetShipitem>().UpdateShip(userShips[i], isInExplore);
             this.shipObjects.Add(item);
         }
         this.shipContainer.SetItems(this.shipObjects);
         this.lockAndWarn = PVEPrepareLockAndWarning.None;
         this.CheckLockAndWaring(userShips);
         this.ShowLock();
         this.UpdatePropsText();
         this.isUpdatingFleet = false;
     }
 }
 private void SetLock(PVEPrepareLockAndWarning l)
 {
     if (this.lockAndWarn == PVEPrepareLockAndWarning.None)
     {
         this.lockAndWarn = l;
     }
 }