private IEnumerator WaitForShoot(GameObject arma, GameObject emisorBalasGameObject) { RotateBot(GameObject.FindGameObjectWithTag("Player")); emisorBalas.disparar(arma, emisorBalasGameObject); yield return(new WaitForSeconds(frecuency)); isPlayerShooting = false; }