적 코드using UnityEngine;public class Enemy : MonoBehaviour{ public float speed = 5f; // 적의 이동 속도 void Update() { Move(); // 이동 함수 호출 } void Move() { // 적이 현재 위치에서 목표 지점으로 이동하는 방향을 계산합니다. Vector3 moveDirection = Vector3.left; // 적을 목표 지점으로 이동합니다.
transform.Translate(moveDirection * speed * Time.deltaTime); }} 타워 코드public class Tower : MonoBeha.....