Good evening, if someone could help me out my C♯ is pretty horrible. I am trying to call two functions MonoBehaviour and float both of which I thought were standard but are coming up No Completions Found. My code is posted below however the following errors are coming up.
- Unexpected token: MonoBehaviour
- Unexpected token: {
- Unexpected token: float
- expecting EOF, found public.
using UnityEngine
using System.Collections;
public class Grantmove : MonoBehaviour
{
public float speed = 1.0f;
public string axisName = "Horizontal";
void Start ()
{}
void Update ():
{
Transform.position += Transform.right*Input.GetAxis(axisName)speed*Time.deltaTime;
}
}