[Unity][방법] 특정 지역으로 오브젝트 이동효과
1. MoveTowards (현재 위치, 목표 위치, 속력) transform.postion() 은 오브젝트의 위치를 결정하는 함수입니다. Vector3.MoveTowards(현재 위치, 목표 위치, 속력) 은 해당 값들을 매개변수로 사용합니다. using System.Collections; using System.Collections.Generic; using UnityEngine; public class move : MonoBehaviour { Vector3 destination = new Vector3 (3, 4, 5); void Update() { transform.position = Vector3.MoveTowards(transform.position, destination, 1); } } gi..