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();
}
}