Hi im new at unity i want to make a Fps game but i got 2 errors

Error 1 Assets\Scripts\InputManager.cs(16,37): error CS1002: ; expected
Error 2 Assets\Scripts\InputManager.cs(16,44): error CS1525: Invalid expression term ‘)’

Could somebody help me??

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
public class NewBehaviourScript : MonoBehaviour
{
    private PlayerInput PlayerInput;
    private PlayerInput.HeistActions Heist;

    private PlayerMotor motor;
    // Start is called before the first frame update
    void Awake()
    {
        PlayerInput = new PlayerInput();
        Heist = PlayerInput.Heist;
        motor = GetComponent<Player Motor>();
    }

    // Update is called once per frame
    void FixedUpdate()
    {
        //tell the Player Motor to move using the value from our movement action.
        motor.ProcessMove(Heist.Movement.ReadValue<vector2>());
    }
        private void OnEnable()
    {
        Heist.Enable();
    }
        private void OnDisable()
    {
        Heist.Disable();
    }
}

I think all you have to do is take out the parentheses in line 16.

Hello.

you need to learn to understand the errors messages.


Assets\Scripts\InputManager.cs(16,37): error CS1002: ; expected

This means, in the script called InputManager, at line 16, the character 37, unity was expecting a " ; " symbol.


Assets\Scripts\InputManager.cs(16,44): error CS1525: Invalid expression term ‘)’

This means, in script called InputManager, at line 16, there is a " )" symbol that is not sytaxis correct.

Probably its all the same error, one " )" that isnt at correct place.


Bye