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; }
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); } }
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; }