Ejemplo n.º 1
0
            public override void onEvent(HitEvent e)
            {
                var target     = e.Args.target;
                var move       = e.Args.move;
                var buffer     = owner.InputBuffer;
                var translator = owner.InputTranslator;

                if (target == owner &&
                    move.Blockable &&
                    isTypeBlockable(move.Type) &&
                    buffer.Peek(translator.Translate(getInputSequence())))
                {
                    e.Cancel();
                    animator.SetTrigger(getAnimationTriggerName());
                }
            }