Exemple #1
0
 public void scareLocation(NavAgent person) {
     //target.position = coords;
     //target.position = new Vector3(8.18F, 11.35F, 0.59F);
     if (true) {
         timing2 = true;
         person.setTarget(target.position);
         person.setView(target.position);
     }
     
 }
Exemple #2
0
    public void scareLocation(NavAgent person)
    {
        //target.position = coords;
        //target.position = new Vector3(8.18F, 11.35F, 0.59F);
        if (true) {

            person.setTarget(person.getCenter());
            person.setView(this.GetComponent<Transform>().position);
        }
    }