Skip to content

Instantly share code, notes, and snippets.

@komamitsu
Created September 17, 2017 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save komamitsu/e09434bc921e53c91e3826cee48756bd to your computer and use it in GitHub Desktop.
Save komamitsu/e09434bc921e53c91e3826cee48756bd to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeScript : MonoBehaviour {
void Update() {
transform.Rotate(0, Input.GetAxis("Horizontal") * 60 * Time.deltaTime, 0);
transform.Translate(Vector3.forward * Input.GetAxis("Vertical") * 0.2f, Space.Self);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment