//TODO:临时接口 public SkillFullInfo(SkillData sd) { skillData = sd; }
//TODO:快捷键技能的信息 需要通过ShortCutInfo和普通的SkillInfo 来初始化 获得技能的等级信息 //TODO:根据快捷键信息 初始化技能信息 或者 使用道具药品的信息 public SkillFullInfo(ShortCutInfo sh) { shortInfo = sh; skillData = Util.GetSkillData(sh.BaseId, 1); //Pos = sh.Index; }
//TODO:从服务器初始化 技能数据 public SkillFullInfo(SkillInfo sk) { //skillInfo = sk; skillData = Util.GetSkillData(sk.SkillInfoId, sk.Level); //Pos = sk.Pos; }
public void SetLevel(int lev) { skillData = Util.GetSkillData(skillId, lev); }
public SkillFullInfo(GCPushActivateSkill p) { skillData = Util.GetSkillData(p.SkillId, p.Level); }
/// <summary> /// 释放一个技能状态机 /// </summary> /// <returns>The skill.</returns> /// <param name="attacker">Attacker.</param> /// <param name="activeSkill">Active skill.</param> /// <param name="position">Position.</param> public static IEnumerator MakeSkill(GameObject attacker, SkillData activeSkill, Vector3 position) { var skillStateMachine = CreateSkillStateMachine(attacker, activeSkill, position); yield return(null); }