Ejemplo n.º 1
0
    IEnumerator PlayWeaponPose(int pose)
    {
        int nowpose = owner.posMng.mActiveAction.Idx;
        List <VirtualInput> skill = VirtualInput.CalcSkillInput(pose);

        for (int i = 0; i < skill.Count; i++)
        {
            //受击中断招式
            if (owner.posMng.mActiveAction.Idx != nowpose)
            {
                yield break;
            }

            if (skill[i].type == 1)
            {
                owner.controller.Input.OnKeyDown(skill[i].key, true);
            }
            else if (skill[i].type == 0)
            {
                owner.controller.Input.OnKeyUp(skill[i].key);
            }

            yield return(0);
        }
        PlayWeaponPoseCorout = null;
    }