Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (rb.velocity.x < 0.1 && rb.velocity.y == 0 && lanzado)
        {
            Destroy(gameObject);

            if (MeteoritosRestantes == 0)
            {
                controlJuego.volverMenu();
            }
        }
    }