I am just starting the c# programming language and I assigned my player to move at speed 1 and when ever I press the arrow keys my player moves at a ridiculous speed. here is the script I wrote, and I just cant see why it is not working, can you help please?
using UnityEngine;
using System.Collections;
public class timothymoveforwardsandbackwards : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
var moveSpeed = 1;
if (Input.GetKey(āwā)) {
transform.Translate(Vector3.forward * moveSpeed);
}
if (Input.GetKey(āsā)) {
transform.Translate(Vector3.back * moveSpeed);
}
}
}