private IEnumerator DigimonInfos() { yield return(new WaitForSeconds(0.6f)); this.particleRemover.SetActive(true); if (this.digimonInfos != null) { for (int i = 0; i < this.digimonInfos.Length; i++) { NGUITools.SetActiveSelf(this.digimonInfos[i].gameObject, true); TweenAlpha tweenAlpha = this.digimonInfos[i].gameObject.AddComponent <TweenAlpha>(); tweenAlpha.from = 0f; tweenAlpha.to = 1f; if (!this.isMulti) { string tgtId = this.deckData.monsterList[i].userMonsterId; GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterList = this.memoryMonsterList.Single((GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList x) => x.userMonsterId == tgtId); MonsterData monsterDataByUserMonsterID = MonsterDataMng.Instance().GetMonsterDataByUserMonsterID(tgtId, false); this.digimonInfos[i].CreateDetails(userMonsterList.ex.ToInt32(), userMonsterList.level.ToInt32(), monsterDataByUserMonsterID.monsterM.maxLevel.ToInt32()); } else { GameWebAPI.RespData_WorldMultiStartInfo respData_WorldMultiStartInfo = DataMng.Instance().RespData_WorldMultiStartInfo; int partyIndex = DataMng.Instance().GetPartyIndex(i); int monsterIndex = DataMng.Instance().GetMonsterIndex(i); GameWebAPI.RespData_WorldMultiStartInfo.Party party = respData_WorldMultiStartInfo.party[partyIndex]; GameWebAPI.Common_MonsterData common_MonsterData = party.userMonsters[monsterIndex]; MonsterData monsterData = common_MonsterData.ToMonsterData(); string tgtId = common_MonsterData.userMonsterId; GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterList2 = this.memoryMonsterList.SingleOrDefault((GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList x) => x.userMonsterId == tgtId); if (userMonsterList2 != null) { this.digimonInfos[i].CreateDetails(userMonsterList2.ex.ToInt32(), userMonsterList2.level.ToInt32(), monsterData.monsterM.maxLevel.ToInt32()); } else { this.digimonInfos[i].CreateDetails(monsterData); } } } BattleResultDigimonInfo[] growDigimonInfos = this.GetGrowDigimonInfos(this.digimonInfos); IEnumerator countUpExp = this.CountUpExp(growDigimonInfos); while (countUpExp.MoveNext()) { yield return(null); } } yield break; }
private void SkipDigimonInfos() { this.particleRemover.SetActive(true); if (this.showDigimonInfos != null) { AppCoroutine.Stop(this.showDigimonInfos, false); this.showDigimonInfos = null; } this.restRewardExp = this.totalExp; this.ResetLabelSizeAndColor(this.getExp); this.getCluster.text = StringFormat.Cluster(this.totalCluster); if (this.digimonInfos != null) { for (int i = 0; i < this.digimonInfos.Length; i++) { NGUITools.SetActiveSelf(this.digimonInfos[i].gameObject, true); if (!this.isMulti) { string tgtId = this.deckData.monsterList[i].userMonsterId; GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterList = this.memoryMonsterList.Single((GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList x) => x.userMonsterId == tgtId); MonsterData monsterDataByUserMonsterID = MonsterDataMng.Instance().GetMonsterDataByUserMonsterID(tgtId, false); this.digimonInfos[i].CreateDetails(userMonsterList.ex.ToInt32(), userMonsterList.level.ToInt32(), monsterDataByUserMonsterID.monsterM.maxLevel.ToInt32()); } else { GameWebAPI.RespData_WorldMultiStartInfo respData_WorldMultiStartInfo = DataMng.Instance().RespData_WorldMultiStartInfo; int partyIndex = DataMng.Instance().GetPartyIndex(i); int monsterIndex = DataMng.Instance().GetMonsterIndex(i); GameWebAPI.RespData_WorldMultiStartInfo.Party party = respData_WorldMultiStartInfo.party[partyIndex]; GameWebAPI.Common_MonsterData common_MonsterData = party.userMonsters[monsterIndex]; MonsterData monsterData = common_MonsterData.ToMonsterData(); string tgtId = common_MonsterData.userMonsterId; GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterList2 = this.memoryMonsterList.SingleOrDefault((GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList x) => x.userMonsterId == tgtId); if (userMonsterList2 != null) { this.digimonInfos[i].CreateDetails(userMonsterList2.ex.ToInt32(), userMonsterList2.level.ToInt32(), monsterData.monsterM.maxLevel.ToInt32()); } else { this.digimonInfos[i].CreateDetails(monsterData); } } GameObject gameObject = this.digimonInfos[i].gameObject; base.ResetTweenAlpha(gameObject); } BattleResultDigimonInfo[] growDigimonInfos = this.GetGrowDigimonInfos(this.digimonInfos); if (growDigimonInfos != null) { while (!this.UpdateDigimonExp(growDigimonInfos, true)) { } for (int j = 0; j < growDigimonInfos.Length; j++) { growDigimonInfos[j].FixExp(this.restRewardExp); } } } this.getExp.text = this.restRewardExp.ToString(); this.StopCountUpSound(); this.ShowTapNext(); }