This commit is contained in:
Wilson Leong 2014-04-26 13:24:54 -06:00
commit 71cfc3b3a3
7 changed files with 1494 additions and 23 deletions

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

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