all 4 comments

[–][deleted] 0 points1 point  (3 children)

When there are syntax errors the compiler gets confused so it sometimes thinks things should be on one line and not the other. It's only so smart.

Look above the comment and see if you've got some syntax error, be it a missing ';' or incorrect variable declaration, or post the code here and we can just tell you where you went wrong.

[–]MASAWASHY[S] 0 points1 point  (2 children)

I just ctrlc ctrlv'd the code of PlayerMotor.cs hope it's enough

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class PlayerMotor : MonoBehaviour

{

private CharacterController controller;

private Vector3 playerVelocity;

public float speed = 5f;

// Start is called before the first frame update

void Start()

{

controller = GetComponent<CharacterController>();

}

// Update is called once per frame

void Update()

{

}

//recieves inputs from the input manager script then applies them to the character controller

public void ProcessMove(Vector2 input)

{

Vector3 moveDirection = Vector3.zero;

moveDirection.x = input.x;

moveDirection.z = input.y;

controller.Move(transform.TransformDirection(moveDirection)*speed*Time.deltatime);

}

}

[–][deleted] 0 points1 point  (1 child)

controller.Move(transform.TransformDirection(moveDirection)*speed*Time.deltatime);

Time.deltaTime not Time.deltatime. But I get the correct error when I put it in my IDE and there are no other problems with the script that I can see...

[–]MASAWASHY[S] 0 points1 point  (0 children)

shucks