Ejemplo n.º 1
0
    private IEnumerator WaitForShoot(GameObject arma, GameObject emisorBalasGameObject)
    {
        RotateBot(GameObject.FindGameObjectWithTag("Player"));
        emisorBalas.disparar(arma, emisorBalasGameObject);
        yield return(new WaitForSeconds(frecuency));

        isPlayerShooting = false;
    }