Separated walk AI from demon/patron reactions.
This commit is contained in:
parent
0a866b7574
commit
1be47add34
11 changed files with 464 additions and 886 deletions
|
|
@ -3,7 +3,7 @@ using System.Collections;
|
|||
|
||||
public class NavPoint : MonoBehaviour {
|
||||
void OnTriggerEnter(Collider other) {
|
||||
Patron p = other.gameObject.GetComponent<Patron>();
|
||||
WalkAI p = other.gameObject.GetComponent<WalkAI>();
|
||||
if(p != null)
|
||||
p.NextDest();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue