using System.Collections; using System.Collections.Generic; using UnityEngine; public class Mover : MonoBehaviour { public float Speed; private Rigidbody rb; void Start() { rb = GetComponent(); rb.velocity = transform.forward * Speed; } }