Пример #1
0
 //TODO:临时接口
 public SkillFullInfo(SkillData sd)
 {
     skillData = sd;
 }
Пример #2
0
 //TODO:快捷键技能的信息 需要通过ShortCutInfo和普通的SkillInfo 来初始化 获得技能的等级信息
 //TODO:根据快捷键信息 初始化技能信息 或者 使用道具药品的信息
 public SkillFullInfo(ShortCutInfo sh)
 {
     shortInfo = sh;
     skillData = Util.GetSkillData(sh.BaseId, 1);
     //Pos = sh.Index;
 }
Пример #3
0
 //TODO:从服务器初始化 技能数据
 public SkillFullInfo(SkillInfo sk)
 {
     //skillInfo = sk;
     skillData = Util.GetSkillData(sk.SkillInfoId, sk.Level);
     //Pos = sk.Pos;
 }
Пример #4
0
 public void SetLevel(int lev)
 {
     skillData = Util.GetSkillData(skillId, lev);
 }
Пример #5
0
 public SkillFullInfo(GCPushActivateSkill p)
 {
     skillData = Util.GetSkillData(p.SkillId, p.Level);
 }
Пример #6
0
        /// <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);
        }