Ejemplo n.º 1
0
    void OnDisable()
    {
        InputHandler.LeftStickEvent().horizontalAnalogEvent.becameActive -= MoveHorizontally;
        InputHandler.LeftStickEvent().verticalAnalogEvent.becameActive -= MoveVertically;

        InputHandler.DPadEvent().horizontalAnalogEvent.becameActive -= MoveHorizontally;
        InputHandler.DPadEvent().verticalAnalogEvent.becameActive -= MoveVertically;

        InputHandler.BEvent().becameActive -= Return;
        InputHandler.AEvent().becameActive -= Activate;
    }
Ejemplo n.º 2
0
    void Start()
    {
        InputHandler.StartEvent().becameActive   += TriggerPauseMenu;
        InputHandler.LeftTriggerEvent().getValue += actions.AdjustMovementBehavior;
        InputHandler.LeftStickEvent().getValue   += actions.Movement;
        InputHandler.AEvent().becameActive       += Jump;
        InputHandler.YEvent().becameActive       += CheckItemUsage;
        InputHandler.BEvent().becameActive       += CheckForDodge;
        InputHandler.XEvent().becameActive       += Attack;

        InputHandler.LBEvent().becameActive += HotbarNavigationLeft;
        InputHandler.RBEvent().becameActive += HotbarNavigationRight;

        InputHandler.RightTriggerEvent().becameActive += ChangeHotbar;
    }
Ejemplo n.º 3
0
 public override void Hide()
 {
     instance.gameObject.SetActive(false);
     InputHandler.BEvent().becameActive -= Hide;
 }
Ejemplo n.º 4
0
 public override void Show()
 {
     instance.gameObject.SetActive(true);
     InputHandler.BEvent().becameActive += Hide;
 }