ive just started today trying to make a game so im doing the ball game to try and get the hang of it.
Assets/scripts/playercontroller.cs(10,48): error CS0119: Expression denotes a type', where a
variable’, value' or
method group’ was expected
that is the error they have given me and my code is using UnityEngine;
using System.Collections;
public class playercontroller : MonoBehaviour
{
public float speed;
void fixedupdate ()
{
float moveHorizontal = Input("getaccessHorizontal");
float moveVertical = Input.GetAxis ("moveVertical");
Vector3 movement = new Vector3(moveHorizontal,0.0f,moveVertical);
rigidbody.AddForce(movement * speed * Time.deltaTime);
}
}
i dont know how to fix this error. please help. thanks.