Created
September 17, 2017 11:38
-
-
Save komamitsu/e09434bc921e53c91e3826cee48756bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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