public void SetShip(ShipInWar ship, float showTime)
 {
     this.showTime = showTime;
     this.choosedItem = GameObjectUtil.InstantiateItemAsChildOf(this.toChoosePrefab[UnityEngine.Random.Range(0, this.toChoosePrefab.Length)], base.gameObject);
     this.ChangeTime();
     if (this.avatar == null)
     {
         this.avatar = base.GetComponent<UpdateBigAvatarInfo>();
     }
     this.avatar.bodySprite = this.choosedItem.transform.GetChild(0).gameObject;
     this.avatar.SetShip(ship);
     base.Invoke("ActiveChoosedItemAt", 0.1f);
 }
 private void Start()
 {
     if (this.bigAvatar == null)
     {
         this.bigAvatar = base.GetComponent<UpdateBigAvatarInfo>();
     }
     this.gameData = GameData.instance;
     if ((this.gameData.UserFleets != null) && (this.gameData.UserFleets.Length > 0))
     {
         int[] ships = this.gameData.UserFleets[0].ships;
         if ((ships != null) && (ships.Length > 0))
         {
             UserShip shipById = this.gameData.GetShipById(ships[0]);
             this.bigAvatar.SetShip(shipById);
         }
     }
 }