예제 #1
0
 public Skill(NSkillInfo info, Creature owner)
 {
     this.Info   = info;
     this.Owner  = owner;
     this.Define = DataManager.Instance.Skills[this.Owner.Define.TID][this.Info.Id];
     this.cd     = 0;
 }
예제 #2
0
    public void SetItem(SkillDefine item, UISkill owner, bool equiped)
    {
        this.item = item;

        if (this.title != null)
        {
            this.title.text = this.item.Name;
        }
        if (this.level != null)
        {
            this.level.text = item.UnlockLevel.ToString();
        }
        if (this.icon != null)
        {
            this.icon.overrideSprite = Resloader.Load <Sprite>(this.item.Icon);
        }
    }
예제 #3
0
파일: Game.cs 프로젝트: ofx360/rpg-project
        public static Skill CreateSkill(SkillDefine skillDef)
        {
            Skill s;
            s.name = skillDef.name;
            s.description = skillDef.description;
            s.mpCost = skillDef.mpCost;
            s.damage = skillDef.damage;
            s.type = skillDef.type;
            s.element = skillDef.element;

            return s;
        }