public void GameOver(string ganhouPlayer) { SetBoardInteractable(false); if (ganhouPlayer == "Empate") { //desabilita o texto xis ou zero startingInfo.SetActive(false); youwin.SetActive(true); animMensagem = GameObject.FindGameObjectWithTag("youWin").GetComponent <Animator> (); setGameOverText(":(" + " Empate!"); animMensagem.Play("youWin"); SetPlayerColorInactive(); adsUmaVez = true; DesabilitaGame(); AdsUnity.instance.ShowAds(); } else if (playerSide == "x") { //desabilita o texto xis ou zero startingInfo.SetActive(false); youwin.SetActive(true); animMensagem = GameObject.FindGameObjectWithTag("youWin").GetComponent <Animator> (); setGameOverText(playerSide + " " + "Ganhou"); animMensagem.Play("youWin"); //SET PARTIDAS partidasControl.SetPartidasX(1); //SET MOEDAS scoreManager.AdicionMoedasX(100); //AUMENTA O FILLMOUNT sacoControl.SetMudaCorSacoX(0.1f); //vai exibindo a cor da sacola de dinheiro as poucos audioAnimSacola.AudioSacoDinheiro(); } else if (playerSide == "o") { //desabilita o texto xis ou zero startingInfo.SetActive(false); youwin.SetActive(true); animMensagem = GameObject.FindGameObjectWithTag("youWin").GetComponent <Animator> (); setGameOverText(playerSide + " " + "Ganhou"); animMensagem.Play("youWin"); //SET PARTIDAS partidasControl.SetPartidasO(1); //SET MOEDAS scoreManager.AdicionMoedasO(100); //AUMENTA O FILLMOUNT sacoControl.SetMudaCorSacoO(0.1f); //vai exibindo a sacola de dinheiro as poucos audioAnimSacola.AudioSacoDinheiro(); } else { SetPlayerColorInactive(); } // habilita o restar se houver gameOver //restartButton.SetActive (true); //sairButton.SetActive (true); }