You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
593 B

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);
}
}