Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

401
Vistas
How can I solve the Unity GameObject Problem? Solved

When the Continue Ads gameobject is closed, the Game over button works, but when the Continue Ads is turned on, the Game over button does not work. I cannot understand why I make a mistake?

!Me fixed the problem, the problem is that I noticed that it is related to the continue ads dimension, thank you for your time.

enter image description here

void Update()
{
        if (Application.internetReachability == NetworkReachability.NotReachable)
        {
            //Debug.Log("No internet access");
            Destroy(GameObject.FindWithTag("ContinuePanel"));

        }
        else
        {
            //Debug.Log("internet connection");

            if (tag == "Skull")
            {
                ContinueAds();
            }
        }
}



public void ContinueAds()
{
    gameObject.AddComponent<AdsScript1>();
    gameoverPanel.SetActive(false);
    PausedGamePanel();
}


public void GameoverButton()
{
    gameoverPanel.SetActive(false);
    SceneManager.LoadScene(0);
}
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Your continue ads object is in gameover panel. When you set gameoverPanel.SetActive(false) you also do the same on the child objects.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda