Exemplo n.º 1
0
        private void TryReleaseSkill()
        {
            mIgnoreTime = 0f;

            if (!mIsInit)
            {
                return;
            }

            LocalPlayer tmpLocalPlayer = Game.ControllerMgr.Get <UnitController>().LocalPlayer;

            if (!mIsSkillReady)
            {
                var tmpInterruptIdx = tmpLocalPlayer.ActStatus.ActiveAction.GetActionInterruptIdx(ACT.EOperation.EO_Attack);

                if (-1 != tmpInterruptIdx)
                {
                    tmpLocalPlayer.LinkSkill(null, tmpInterruptIdx);
                }

                return;
            }

            tmpLocalPlayer.LinkSkill(this, mInterruptIndex);
        }
Exemplo n.º 2
0
        private void TryReleaseAction(ACT.EOperation operation, ACT.EInputType inputType)
        {
            LocalPlayer tmpLocalPlayer  = Game.ControllerMgr.Get <UnitController>().LocalPlayer;
            var         tmpInterruptIdx = tmpLocalPlayer.ActStatus.ActiveAction.GetActionInterruptIdx(operation, inputType);

            if (-1 != tmpInterruptIdx)
            {
                tmpLocalPlayer.LinkSkill(null, tmpInterruptIdx);
            }
        }