// Use this for initialization void Start() { ai = GetComponent <UnityStandardAssets.Characters.ThirdPerson.AICharacterControl>(); ChangeTarget(points[0]); ai.moveSpeed = 0.5f; state = State.patroling; portal = GetComponent <PatrolPortal>(); }
public void AddPatrol(PatrolPortal portal) { patrolPortlas.Add(portal); }