private void ShowInfo() { GameWebAPI.RespDataWD_GetDungeonInfo.Dungeons dungeon = this.dungeonData.dungeon; ClassSingleton <PartyBossIconsAccessor> .Instance.StageEnemies = dungeon.encountEnemies; this.ngTX_A_STAGE_DNG_NUMBER.text = this.dungeonNo; this.ngTX_A_STAGE_DNG_TITLE.text = this.dungeonData.worldDungeonM.name; this.ngTX_A_STAGE_DNG_DESCRIPT.text = this.dungeonData.worldDungeonM.description; this.getEXPLabel.text = dungeon.exp.ToString(); this.getClusterLabel.text = StringFormat.Cluster(dungeon.money); int num = 0; int i; for (i = 0; i < dungeon.encountEnemies.Length; i++) { if (num >= this.goENCOUNT_MONS_LIST.Count) { break; } GameWebAPI.RespDataWD_GetDungeonInfo.EncountEnemy encountEnemy = dungeon.encountEnemies[i]; if (encountEnemy.type == 2 || encountEnemy.type == 4) { string text = encountEnemy.monsterId.ToString(); if (!string.IsNullOrEmpty(text)) { MonsterData monsterData = MonsterDataMng.Instance().CreateMonsterDataByMID(text); if (monsterData != null) { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakePrefabByMonsterData(monsterData, this.goENCOUNT_MONS_LIST[num].transform.localScale, this.goENCOUNT_MONS_LIST[num].transform.localPosition, this.goENCOUNT_MONS_LIST[num].transform.parent, true, false); DepthController depthController = guimonsterIcon.GetDepthController(); depthController.AddWidgetDepth(guimonsterIcon.transform, 40); guimonsterIcon.SetTouchAct_S(delegate(MonsterData tappedMonsterData) { this.ActCallBackEncMons(tappedMonsterData, encountEnemy.resistanceId); }); this.goENCOUNT_MONS_LIST[num].SetActive(false); num++; } } } } if (this.dungeonData.dungeon.isExtraWave == 1 && num < this.goENCOUNT_MONS_LIST.Count) { GUIMonsterIcon guimonsterIcon2 = GUIMonsterIcon.MakeQuestionPrefab(this.goENCOUNT_MONS_LIST[num].transform.localScale, this.goENCOUNT_MONS_LIST[num].transform.localPosition, (int)(this.goENCOUNT_MONS_LIST[num].transform.localPosition.z + 35f), this.goENCOUNT_MONS_LIST[num].transform.parent); guimonsterIcon2.SetTouchAct_S(null); guimonsterIcon2.SetTouchAct_L(null); } while (i < this.goENCOUNT_MONS_LIST.Count) { this.goENCOUNT_MONS_LIST[i].SetActive(false); i++; } this.ShowDropItems(); this.goContentsROOT.SetActive(true); this.goPointContentsROOT.SetActive(true); this.bonusPointUI.Initialize(this.areaId, this.dungeonData.worldDungeonM.worldStageId, this.dungeonData.worldDungeonM.worldDungeonId); this.bonusPointUI.SetBonusUI(); }
private void ShowDropItems() { GameWebAPI.RespDataWD_GetDungeonInfo.Dungeons dungeon = this.dungeonData.dungeon; this.dropAssetList = new List <GameWebAPI.RespDataWD_GetDungeonInfo.DropAsset>(); QuestData.CreateDropAssetList(dungeon, this.dropAssetList); int num = 0; for (int i = 0; i < this.dropAssetList.Count; i++) { if (i >= this.itemDROP_ITEM_LIST.Count) { break; } GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.goTEX_DROP); Transform transform = gameObject.transform; Transform transform2 = this.itemDROP_ITEM_LIST[i].transform; transform.parent = transform2.parent; transform.localScale = transform2.transform.localScale; transform.localPosition = transform2.localPosition; int index = i; GUICollider component = gameObject.GetComponent <GUICollider>(); component.onTouchEnded += delegate(Touch touch, Vector2 pos, bool flag) { this.ActCallBackDropItem(index); }; UIWidget component2 = this.itemDROP_ITEM_LIST[i].GetComponent <UIWidget>(); UIWidget component3 = gameObject.GetComponent <UIWidget>(); component3.depth = component2.depth; string assetCategoryId = this.dropAssetList[i].assetCategoryId.ToString(); string objectId = this.dropAssetList[i].assetValue.ToString(); this.itemDROP_ITEM_LIST[i].SetItem(assetCategoryId, objectId, "1", true, null); BoxCollider[] componentsInChildren = this.itemDROP_ITEM_LIST[i].GetComponentsInChildren <BoxCollider>(); if (componentsInChildren != null) { foreach (BoxCollider boxCollider in componentsInChildren) { boxCollider.enabled = false; } } num++; } if (this.dungeonData.dungeon.isExtraWave == 1 && num < this.itemDROP_ITEM_LIST.Count) { GUIMonsterIcon guimonsterIcon = GUIMonsterIcon.MakeQuestionPrefab(new Vector3(0.46f, 0.46f, 1f), this.itemDROP_ITEM_LIST[num].transform.localPosition, (int)(this.itemDROP_ITEM_LIST[num].transform.localPosition.z + 35f), this.itemDROP_ITEM_LIST[num].transform.parent); guimonsterIcon.SetTouchAct_S(null); guimonsterIcon.SetTouchAct_L(null); } this.goTEX_DROP.SetActive(false); }