Exemplo n.º 1
0
    void ReadMouseInputs()
    {
        tankController.mouseInputRay = Camera.main.ScreenPointToRay(Input.mousePosition);
        tankController.SetAimCrossPosition(Input.mousePosition);

        if (Input.GetMouseButtonDown(0))
        {
            tankController.ShootAtTarget();
        }
        tankController.ChangeMinHeight(Input.GetAxisRaw("Mouse ScrollWheel") * scrollWheelSensitivity);
    }