목록2023/08/06 (1)
아카이브

강아지 직선이동 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DogController : MonoBehaviour { public float moveSpeed = 1f; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if (this.transform.position.z >= 13.0) //강아지 현재 z위치 10 { //이동 멈추기 } else { //이동 this.transform.Tr..
유니티 기초
2023. 8. 6. 05:16