DemonShanker2/Assets/Scripts/NavPoint.cs
2014-04-27 11:02:42 -06:00

10 lines
247 B
C#

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