Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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