Created
January 20, 2015 11:30
-
-
Save chabiribon/781271103c7aaced0f0d 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 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