using System.Collections; using System.Collections.Generic; using UnityEngine; public class WayPoint : MonoBehaviour { public float raduis; public Color _color; public Transform folowTarget; // Start is called before the first frame update void Start() { } private void Update() { if (folowTarget != null) { this.transform.position = folowTarget.position; } } private void OnDrawGizmos() { Gizmos.color = _color; Gizmos.DrawSphere(this.transform.position, raduis); } }