DemonShanker2/Assets/Scripts/Driver.cs
2014-04-26 14:49:29 -06:00

14 lines
327 B
C#

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;
}
}