Initial
This commit is contained in:
commit
36a53f343e
1 changed files with 300431 additions and 0 deletions
12
UnityProject/Assets/Scripts/misc/moveForward.cs
Normal file
12
UnityProject/Assets/Scripts/misc/moveForward.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue