using UnityEngine; using System.Collections; public class MoveForward : MonoBehaviour { public float speed = 2; void Update () { transform.position += transform.forward * Time.deltaTime * speed ; } }