Skip to content

Instantly share code, notes, and snippets.

@chabiribon
Created January 20, 2015 11:30
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 chabiribon/781271103c7aaced0f0d to your computer and use it in GitHub Desktop.
Save chabiribon/781271103c7aaced0f0d to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class EnemyMove : MonoBehaviour {
//スピード変更出来るように設定
public float speed = -0.01f;
void Start () {
}
//一定の速さでx軸が進む
void Update () {
transform.Translate (speed, 0, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment