using UnityEngine; using System.Collections; public class NavPoint : MonoBehaviour { void OnTriggerEnter(Collider other) { WalkAI p = other.gameObject.GetComponent(); if(p != null) p.NextDest(); } }