Patrons have destination list

This commit is contained in:
Wilson Leong 2014-04-26 14:47:56 -06:00
commit 828a0b50dd
6 changed files with 66 additions and 134 deletions

14
Assets/Scripts/Driver.cs Normal file
View file

@ -0,0 +1,14 @@
using UnityEngine;
using System.Collections;
public class Driver : MonoBehaviour {
Vector3 dest;
void Awake() {
Vector3 pos = GameObject.Find("node3").transform.position;
NavMeshAgent nva = GetComponent<NavMeshAgent>();
nva.SetDestination(pos);
nva.updateRotation = false;
}
}