12 lines
262 B
C#
12 lines
262 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class moveForward : MonoBehaviour {
|
|
|
|
public float speed = 1;
|
|
|
|
void FixedUpdate () {
|
|
transform.position += transform.forward * speed * Time.deltaTime;
|
|
}
|
|
}
|