Example #1
0
    private void Update()
    {
        if (InputManager.AButton())
        {
            Debug.Log("Success");
        }

        if (InputManager.AButtonTwo())
        {
            Debug.Log("MegaSuccess");
        }

        Vector2 moveInput = new Vector2(Input.GetAxisRaw("2J_MainHorizontal"), Input.GetAxisRaw("2J_MainVertical"));

        moveVelocity = moveInput.normalized * speed;

        if (moveInput.magnitude == 0)
        {
            //           anim.SetBool("isMoving", false);
        }
        else
        {
            //          anim.SetBool("isMoving", true);
        }

        if (cakeCount > 0 && Input.GetKeyDown(KeyCode.Space))
        {
            speedBoost();
        }
    }