public static void CreateDialog(GameObject parentDialog, PicturebookMonster monster) { CMD_PicturebookDetailedInfo cmd_PicturebookDetailedInfo = CMDWrapper.LoadPrefab <CMD_PicturebookDetailedInfo>("CMD_PictureBookDetailedInfo"); cmd_PicturebookDetailedInfo.parentDialog = parentDialog; cmd_PicturebookDetailedInfo.viewInfo = new PicturebookDetailedInfo(monster); cmd_PicturebookDetailedInfo.Show(); }
public PicturebookDetailedInfo(PicturebookMonster monsterData) { this.monster = monsterData; Dictionary <string, MonsterSkillClientMaster> skillMasterBySkillGroupId = MonsterSkillData.GetSkillMasterBySkillGroupId(monsterData.monsterMaster.Simple.skillGroupId); this.uniqueSkillCount = 1; this.skillGroupSubIdList = skillMasterBySkillGroupId.Values.ToArray <MonsterSkillClientMaster>(); if (this.skillGroupSubIdList.Length == 2 && this.skillGroupSubIdList[0].Simple.name != this.skillGroupSubIdList[1].Simple.name) { this.uniqueSkillCount = 2; } }