Esempio n. 1
0
 public override void Refresh()
 {
     if (((Eriya)Owner).eriyaMode == EriyaMode.Bot)
     {
         Debug.Log("Bot");
         return;
     }
     base.Refresh();
     if (Control.MainWPAttackLDown())
     {
         SkillSystem.Cast(0);
     }
     if (Control.MainWPAttackRDown())
     {
         SkillSystem.Cast(1);
     }
     if (Control.BackArrowDown())
     {
         //WJ's GrapplingHook Skill
         SkillSystem.Cast(2);
     }
     if (Control.CoreArrowDown())
     {
         //WMC's Flash Skill
         SkillSystem.Cast(3);
     }
     if (Control.ShiftHackDown())
     {
         //WMC's ThroughWallSkill
         SkillSystem.Cast(4);
     }
 }
Esempio n. 2
0
 public override void Refresh()
 {
     base.Refresh();
     if (Owner.Interrupt == 0)
     {
         if (Control.SubWPAttackLDown() && Owner.WeaponSystem.skillCasting == null)
         {
             SkillSystem.Cast(0);
         }
     }
 }
Esempio n. 3
0
 public override void Refresh()
 {
     base.Refresh();
     if (Owner.Interrupt == 0)
     {
         if (Control.MainWPAttackLDown())
         {
             SkillSystem.Cast(0);
             LeftPressed = false;
         }
     }
 }
Esempio n. 4
0
 public override void Refresh()
 {
     base.Refresh();
     if (Owner.Interrupt == 0)
     {
         if (Control.CoreArrowDown())
         {
             SkillSystem.Cast(0);
             LeftPressed = false;
         }
         //if (Control.MainWPAttackRPress())
         //{
         //    SkillSystem.Cast(1);
         //    LeftPressed = false;
         //}
     }
 }
Esempio n. 5
0
        public override void Refresh()
        {
            base.Refresh();
            if (Owner.Interrupt == 0)
            {
                if (CombTime > 0)
                {
                    CombTime -= Time.deltaTime;
                    //施法队列
                    if (!LeftPressed && Control.MainWPAttackLDown())
                    {
                        LeftPressed = true;
                    }
                    if (LeftPressed && SkillSystem.SkillCasting == null)
                    {
                        SkillSystem.Cast(2);
                        CombTime = 0;
                        return;
                    }

                    if (CombTime <= 0)
                    {
                        //连击时间过了回到原状态
                        a.PlayInFixedTime("Stand");
                    }
                }
                else if (Control.MainWPAttackLPress())
                {
                    SkillSystem.Cast(0);
                    LeftPressed = false;
                }
                if (Control.MainWPAttackRPress())
                {
                    SkillSystem.Cast(1);
                    LeftPressed = false;
                }
            }
        }