public void UpdateList(MonsterUserData changeMonster) { if (this.ExistDeckMonster(changeMonster.GetMonster().userMonsterId)) { int deckIndex = this.GetDeckIndex(changeMonster.GetMonster().userMonsterId); if (deckIndex < 6) { this.deckMonsterList[deckIndex] = this.deckMonsterList[this.selectItemIndex]; } } this.deckMonsterList[this.selectItemIndex] = changeMonster; this.SetMonsterIcon(); this.UpdateSelectedMonster(); this.deckData.DeckButton.UpdateButton(); }
public static void SetData(MonsterBasicInfo basicInfo, MonsterUserData monster) { if (monster.GetMonster().IsEgg()) { basicInfo.SetEggData(StringMaster.GetString("CharaStatus-04"), monster.GetMonsterMaster().Simple.rare); } else { basicInfo.SetMonsterData(monster as MonsterData); } }
public static void SetColosseumDeckMonsterDetailed(this MonsterIcon self, MonsterUserData monster) { MonsterClientMaster monsterMaster = monster.GetMonsterMaster(); self.Thumbnail.SetImage(monsterMaster.Simple.iconId, monsterMaster.Group.growStep); self.Arousal.SetArousal(monsterMaster.Simple.rare); if (monster.GetMonster().IsLocked) { self.Lock.SetLock(); } else { self.Lock.SetUnlock(); } }
private void EndExecSuccess() { if (this.execMeatNum > 0) { GooglePlayGamesTool.Instance.Meal(this.execMeatNum); } base.StartCoroutine(this.PlayGiftMeatAnimation(delegate { DataMng.Instance().US_PlayerInfoSubMeatNum(CMD_MealExecution.execMeatNum_bk); MonsterUserData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(CMD_MealExecution.monsterdata_bk.userMonster.userMonsterId); GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList monster = userMonster.GetMonster(); monster.ex = CMD_MealExecution.last_exp_info_bk.exp.ToString(); monster.level = CMD_MealExecution.last_exp_info_bk.lev.ToString(); CMD_MealExecution.monsterdata_bk = null; this.execMeatNum = 0; this.consumptionScheduleNum.text = "0"; this.consumptionLevelUpCount = 0; this.consumptionLevelUpLabel.text = string.Empty; this.SetStatus(); this.IsLockClose = false; this.meatNumDownButtonSprite.spriteName = "Common02_Meal_Down_G"; this.meatNumDownButtonCollider.activeCollider = false; if (!this.meatNumUpButtonCollider.activeCollider) { this.meatNumUpButtonSprite.spriteName = "Common02_Meal_UP"; this.meatNumUpButtonCollider.activeCollider = true; } DataMng.ExperienceInfo expInfo = this.GetExpInfo(); if (expInfo.lev >= int.Parse(CMD_MealExecution.DataChg.monsterM.maxLevel)) { this.meatNumUpButtonSprite.spriteName = "Common02_Meal_UP_G"; this.meatNumUpButtonCollider.activeCollider = false; } this.InitBtnHQMeat(); })); RestrictionInput.EndLoad(); }