본문 바로가기
Programing/unity

유니티,unity,z방향으로 초당 이동,Vector3.forward,Time.deltaTime

by 고니의 경제주식 2017. 2. 23.
반응형

public float speed;

// Use this for initialization

void Start () {

}

// Update is called once per frame

void Update () {

transform.position += Vector3.forward * Time.deltaTime * speed;

}


반응형