Exemplo n.º 1
0
    public MonsterActor(
        int _id,
        string _name,
        List <int> _skillList,
        string _spineFileName
        )
    {
        this.id            = _id;
        this.monsterName   = _name;
        this.spineFileName = _spineFileName;

        foreach (int item in _skillList)
        {
            MonsterSkillsData nowSkillData = MonsterSkillsData.dataList.Find(t => t.monsterSkill_Id == item);

            this.skillList.Add(nowSkillData.CreateMe());
        }
    }
Exemplo n.º 2
0
    public void SettingData(
        int _id,
        string _name,
        int _roundNum,
        List <int> _skillList,
        string _spineFileName
        )
    {
        this.id            = _id;
        this.monsterName   = _name;
        this.roundNum      = _roundNum;
        this.spineFileName = _spineFileName;

        foreach (int item in _skillList)
        {
            MonsterSkillsData nowSkillData = MonsterSkillsData.dataList.Find(t => t.monsterSkill_Id == item);

            if (nowSkillData != null)
            {
                this.skillList.Add(nowSkillData.CreateMe());
            }
        }
    }