Got error code CS1003 and can not figure out where the error is. I may just be blind but I can not find it. Any help is appreciated!
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public float force;
public Rigidbody rb;
public Interactable focus;
// Update is called once per frame
void Update()
{
if (Input.GetKey(“w”))
{
rb.AddRelativeForce(Vector3.forward * force);
}
if (Input.GetKey(“s”))
{
rb.AddRelativeForce(Vector3.back * force);
}
if (Input.GetKey(“a”))
{
rb.AddRelativeForce(Vector3.left * force);
}
if (Input.GetKey(“d”))
{
rb.AddRelativeForce(Vector3.right * force);
}
if (Input.GetKey(“space”))
{
rb.AddForce(0, 3, 0);
}
if (Input.GetMouseButtonDown(1))
{
if (Physics.Raycast(ray, out hit 100))
{
Interactable interactable = hit.collider.GetComponent();
if (interactable != null)
{
SetFocus(interactable);
}
}
}
if (Input.GetMouseButtonDown(0))
{
RemoveFocus();
}
}
void SetFocus (Interactable newFocus)
{
focus = newFocus;
}
void RemoveFocus()
{
focus = null;
}
}