public void OnHear(GameObject source, Automaton au) { if(au.CurrentTarget==null && !au.IsChecking){ if(!au.agresive){ au.transform.LookAt(new Vector3 (source.transform.position.x, au.transform.position.y,source.transform.position.z)); au.IsChecking = true; au.StartCoroutine("CheckNoise"); }else{ au.SaveIndex(); au.ClearQue(source.transform.position); au.StartCoroutine("Going"); } } }