コード例 #1
0
        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();
        }
コード例 #2
0
        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;
            }
        }