Unity3D学习笔记——让Cube沿着某个轴运动
摘要:
注意下代码:using UnityEngine;using System.Collections;public class CubeControl : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { transform.Translate(Vector3(0,0,-1)*0.1f);//沿着z轴倒退 }}在monodevelop中build了下,提示“Vector3是类型,但此处被当作变量来使用”,其... 阅读全文
posted @ 2013-11-19 23:55 danchaofan361 阅读(1183) 评论(0) 推荐(0)
浙公网安备 33010602011771号