Ejemplo n.º 1
0
 public void SetDefaultActive()
 {
     activeSkill = GetDefaultSkill().skillData;
 }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
 public void SetActiveSkill(SkillData skillData)
 {
     activeSkill = skillData;
 }