Exemplo n.º 1
0
    void Update()
    {
        movementComp.RequestMoveForward(Input.GetAxis("Vertical"));
        movementComp.RequestMoveRight(Input.GetAxis("Horizontal"));
        if (Input.GetButton("Jump"))
        {
            movementComp.RequestJump();
        }

        if (Input.GetButton("Restart"))
        {
            SceneManager.LoadScene(SceneManager.GetActiveScene().name);
        }

        //cameraController.RotateHorizontal(Input.GetAxis("Mouse X"));
    }