void Update() { if (Active) { PainelY = FundoPainel.transform.position.y; if (PainelY >= py) { PainelY = FundoPainel.transform.position.y; PainelY -= velocidadePainel * Time.deltaTime; FundoPainel.transform.position = new Vector3(FundoPainel.transform.position.x, PainelY, FundoPainel.transform.position.z); //MovimentaĆ§Ć£o do Painel } if (PainelY <= py) { BotOpc1.SetActive(true); BotOpc2.SetActive(true); BotOpc3.SetActive(true); Valor1.SetActive(true); Valor2.SetActive(true); Valor2.SetActive(true); Operador.SetActive(true); Score.SetActive(false); Spaw.SetActive(false); MoverObjeto.DestroyInst = true; if (Alternativa == 4) { DesativaDesafio = true; } if (ativaDesafio && Alternativa != 4) { if (DesativaDesafio) { opc = 1; DesativaDesafio = false; } Desafio(opc); } if (DesativaDesafio && Alternativa == 4) { GerenciadorDesafio.recom = true; ativaDesafio = false; DisableDesafio(); Alternativa = 0; opc = 1; } } } else if (!Active) { BotOpc1.SetActive(false); BotOpc2.SetActive(false); BotOpc3.SetActive(false); Valor1.SetActive(false); Valor2.SetActive(false); Valor2.SetActive(false); Operador.SetActive(false); Score.SetActive(true); Spaw.SetActive(true); FundoPainel.transform.position = new Vector3(transform.position.x, 15, transform.position.z); MoverObjeto.DestroyInst = false; } }