Skip to content

Instantly share code, notes, and snippets.

@seiroise
Last active June 29, 2016 02:49
Show Gist options
  • Select an option

  • Save seiroise/a30ff3ec4b714476c00a3d6ee1e559d9 to your computer and use it in GitHub Desktop.

Select an option

Save seiroise/a30ff3ec4b714476c00a3d6ee1e559d9 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
/// <summary>
/// 移動させる
/// </summary>
public class Move : MonoBehaviour {
[SerializeField] float speed;
void Update() {
transform.Translate(Vector3.right * speed * Time.deltaTime);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment