Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

402
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda