// Update is called once per frame void Update() { if (target.GetComponent <Criminal_Variables>().following) { nav.CreatePath(target.transform.position); } else { Go_Away(); } }
public void Wait() { int size = wait_positions.Count; if (nav.path.corners.Length < 1) { nav.CreatePath(wait_positions[Random.Range(0, size)].transform.position); } if (waiting) { this.GetComponent <Move>().max_mov_speed = 2; nav.CreatePath(wait_positions[Random.Range(0, size)].transform.position); } }
public void Go_Away() { nav.CreatePath(go_away.transform.position); }
public void Go_Start() { nav.CreatePath(target.transform.position); positioned = false; }