목록2021/06/24 (1)
코딩inf
#5 적 이동 스크립트 구현 / 타워설치(돈 감소) (6/24)
일단 스크립트 이다. using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { public Transform[] waypoints; public Transform targetWaypoint; public int targetWaypointIndex = 0; public float minDistance = 0.001f; public float movementSpeed = 3.0f; public float rotationSpeed = 1.0f; // Start is called before the first frame update void Start() { ta..
Unity/TowerDiffence
2021. 6. 24. 23:09