public static void Execute() { if (Settings.Flee.JumpWithQ) { WallJumper.TryToJump(); } }
private void Awake() { _characterController = GetComponent <CharacterController>(); _wallJumper = GetComponent <WallJumper>(); _controller = new InputActionController(); _playerAttacker = GetComponent <PlayerAttacker>(); _controller.Player.Jump.started += ctx => PlayerFunction(StartJumping); _controller.Player.Jump.canceled += ctx => PlayerFunction(StopJumping); _controller.Player.Jump.performed += ctx => PlayerFunction(StopJumping); _controller.Player.Crouch.performed += ctx => PlayerFunction(Crouch); _controller.Player.Attack.performed += ctx => PlayerFunction(Attack); _controller.Player.TimeStop.performed += ctx => PlayerFunction(TimeStopAbility); _controller.Player.Dash.performed += ctx => PlayerFunction(Dash); _wallJumper.OnTouchingWall += (grabbing, right) => WallGrabbed(grabbing); aPlayer.OnDie += () => _enabled = false; aPlayer.OnResetLevel += () => _enabled = true; // _axisDetection = new AxisDetection(Move, Dash, timeForDoublePress); }