Programing/unity
유니티,unity,z방향으로 초당 이동,Vector3.forward,Time.deltaTime
고니의 경제주식
2017. 2. 23. 17:47
반응형
public float speed;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.position += Vector3.forward * Time.deltaTime * speed;
}
반응형