Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created July 1, 2018 04:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class test : MonoBehaviour {
Vector3 pos;
void Update () {
transform.position =pos;
pos.x += 0.05f;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment