2014年12月1日 星期一

Unity 移動方塊

using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
transform.Translate (0, 0, Time.deltaTime);
}
}

沒有留言:

張貼留言