Patrons have destination list
This commit is contained in:
parent
04200df045
commit
828a0b50dd
6 changed files with 66 additions and 134 deletions
10
Assets/Scripts/NavPoint.cs
Normal file
10
Assets/Scripts/NavPoint.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class NavPoint : MonoBehaviour {
|
||||
void OnTriggerEnter(Collider other) {
|
||||
Patron p = other.gameObject.GetComponent<Patron>();
|
||||
if(p != null)
|
||||
p.NextDest();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue