Exemplo n.º 1
0
 private void HandleOnUnpauseButtonPerformed(InputAction.CallbackContext obj)
 {
     Unpause();
 }
Exemplo n.º 2
0
 public void Move(InputAction.CallbackContext context)
 {
     movementScript.Move(context);
 }
Exemplo n.º 3
0
 public void Dash(InputAction.CallbackContext context)
 {
     GetComponent <Element>().Dash(context);
 }
Exemplo n.º 4
0
 private void OnJumpStatred(InputAction.CallbackContext obj)
 {
     glow_jump.DOFade(1, 0.5f);
 }
Exemplo n.º 5
0
 private void OnBrakeStarted(InputAction.CallbackContext obj)
 {
     glow_brake.DOFade(1, 0.5f);
 }
Exemplo n.º 6
0
 private void MenuOnperformed(InputAction.CallbackContext obj)
 {
     StartCoroutine(SceneTransition.GetComponent <SceneLoader>().LoadLevel("LevelSelector"));
 }
Exemplo n.º 7
0
 public void InputDelta(InputAction.CallbackContext ctx)
 {
     inputRotation += ctx.ReadValue <Vector2>();
     GameActive.instance.RotateFloor(inputRotation);
 }
Exemplo n.º 8
0
 public void OnHorizontal(InputAction.CallbackContext context)
 {
     iHorz = context.ReadValue <float>();
     stateMachine.HandleInput();
 }
Exemplo n.º 9
0
 public void OnVertical(InputAction.CallbackContext context)
 {
     iVert = context.ReadValue <float>();
     stateMachine.HandleInput();
 }
Exemplo n.º 10
0
 public void OnSprint(InputAction.CallbackContext context)
 {
     this.sprinting = context.started || !context.canceled && this.sprinting;
 }
Exemplo n.º 11
0
 private void RecieveMovement(InputAction.CallbackContext cc)
 {
     movement = cc.ReadValue <Vector2>();
 }
Exemplo n.º 12
0
 public void OnMove(InputAction.CallbackContext context) => this.movement = context.ReadValue <Vector2>();
Exemplo n.º 13
0
 public void BullSingAttack(InputAction.CallbackContext ctx)
 {
     Bull.DoAttack2(GameInstanceManager.Main.ThePlayer.Location);
 }
Exemplo n.º 14
0
 public void BullChargeAttack(InputAction.CallbackContext ctx)
 {
     //Bull.DoAttack1(ctx.ReadValue<Vector2>());
     Bull.DoAttack1(GameInstanceManager.Main.ThePlayer.Location);
 }
Exemplo n.º 15
0
 public void MakeAim(InputAction.CallbackContext context)
 {
     aim = context.ReadValue <Vector2>();
 }
Exemplo n.º 16
0
 public void OnMove(InputAction.CallbackContext context)
 {
     moveDir     = context.ReadValue <Vector2>().normalized *moveSpeed;
     rb.velocity = moveDir;
 }
Exemplo n.º 17
0
 public void OnAim(InputAction.CallbackContext context)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 18
0
    public void OnLookMouse(InputAction.CallbackContext context)
    {
        Vector2 mousepos = (Vector2)Camera.main.ScreenToWorldPoint((Vector3)context.ReadValue <Vector2>());

        lookDir = mousepos - (Vector2)transform.position;
    }
Exemplo n.º 19
0
 public void GyroInput(InputAction.CallbackContext ctx)
 {
     inputRotation = ctx.ReadValue <Vector3>();
     GameActive.instance.RotateFloor(inputRotation);
 }
 public void Move(InputAction.CallbackContext context)
 {
     moveDir = context.ReadValue <float>();
 }
Exemplo n.º 21
0
 private void OnJumpCanceled(InputAction.CallbackContext obj)
 {
     glow_jump.DOFade(0, 0.5f);
 }
Exemplo n.º 22
0
 public void OnMousePositionUpdate(InputAction.CallbackContext context)
 {
     mousePosition = context.ReadValue <Vector2>();
 }
Exemplo n.º 23
0
 private void OnBrakeCanceled(InputAction.CallbackContext obj)
 {
     glow_brake.DOFade(0, 0.5f);
 }
Exemplo n.º 24
0
 /// <summary>
 /// Sets the X movement direction.
 /// </summary>
 /// <param name="_Context">The current input context, from the InputAction delegate binding.</param>
 private void SetMoveDirectionX(InputAction.CallbackContext _Context)
 {
     m_MovementDirectionX = Mathf.Clamp(m_MovementDirectionX + _Context.ReadValue <float>(), -1f, 1f);
 }
Exemplo n.º 25
0
 private void OncancelMovement(InputAction.CallbackContext obj)
 {
     glow_left.DOFade(0, 0.5f);
     glow_right.DOFade(0, 0.5f);
     glow_acc.DOFade(0, 0.5f);
 }
Exemplo n.º 26
0
 /// <summary>
 /// Reset the X movement direction to 0.
 /// </summary>
 /// <param name="_Context">The current input context, from the InputAction delegate binding.</param>
 private void ResetMoveDirectionX(InputAction.CallbackContext _Context)
 {
     m_MovementDirectionX = 0f;
 }
Exemplo n.º 27
0
 public void Jump(InputAction.CallbackContext context)
 {
     movementScript.Jump(context);
 }
Exemplo n.º 28
0
 private bool IsDeviceMouse(InputAction.CallbackContext context) => context.control.device.name == "Mouse";
Exemplo n.º 29
0
 public void Attack(InputAction.CallbackContext context)
 {
     GetComponent <Element>().Attack(context);
 }
Exemplo n.º 30
0
 private void GripPress(InputAction.CallbackContext obj)
 {
     _handAnimator.SetFloat("Grip", obj.ReadValue <float>());
 }