public void ZerarImagem() { S01.SetActive(false); S02.SetActive(false); S03.SetActive(false); S04.SetActive(false); S05.SetActive(false); S06.SetActive(false); S07.SetActive(false); S08.SetActive(false); D01.SetActive(false); D02.SetActive(false); D03.SetActive(false); D04.SetActive(false); D05.SetActive(false); D06.SetActive(false); D07.SetActive(false); D08.SetActive(false); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); M04.SetActive(false); M05.SetActive(false); M06.SetActive(false); M07.SetActive(false); M08.SetActive(false); }
private void telaMudarAparencia() { resposta1.SetActive(false); resposta2.SetActive(false); resposta3.SetActive(true); M01.SetActive(true); M02.SetActive(true); M03.SetActive(true); F01.SetActive(true); F02.SetActive(true); F03.SetActive(true); textoConversa.text = "Para mudar sua aparencia, você precisa de 100 moedas! Escolha uma das opções abaixo."; textoResposta3.text = "Voltar"; parte = "telaMudarAparencia"; }
private void inicio() { resposta1.SetActive(true); resposta2.SetActive(true); resposta3.SetActive(true); objNome.SetActive(false); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); F01.SetActive(false); F02.SetActive(false); F03.SetActive(false); textoConversa.text = "Olá! Bem vindo ao mercado, o que deseja?"; textoResposta1.text = "Eu quero mudar meu nome!"; textoResposta2.text = "Eu quero mudar de aparencia!"; textoResposta3.text = "Eu quero vender meus itens!"; parte = "inicio"; }
private void naoTemMoedaAparencia() { resposta1.SetActive(true); resposta2.SetActive(false); resposta3.SetActive(false); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); F01.SetActive(false); F02.SetActive(false); F03.SetActive(false); textoConversa.text = "Você não tem moedas suficientes para comprar essa aparencia :c"; textoResposta1.text = "Voltar"; semDinheiro.Play(0); parte = "naoTemMoedaAparencia"; }
public void fecharConversaVendedor() { btnVendedor.SetActive(true); bkgConversa.SetActive(false); resposta1.SetActive(false); resposta2.SetActive(false); resposta3.SetActive(false); objNome.SetActive(false); btnSair.SetActive(false); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); F01.SetActive(false); F02.SetActive(false); F03.SetActive(false); for (int n = 0; n != 6; n++) { gitens[n].SetActive(false); } Time.timeScale = 1; }
public void testarImagem() { if (idQuestão == "172") { S01.SetActive(true); S02.SetActive(false); S03.SetActive(false); S04.SetActive(false); S05.SetActive(false); S06.SetActive(false); S07.SetActive(false); S08.SetActive(false); } if (idQuestão == "170") { S02.SetActive(true); S01.SetActive(false); S03.SetActive(false); S04.SetActive(false); S05.SetActive(false); S06.SetActive(false); S07.SetActive(false); S08.SetActive(false); } if (idQuestão == "171") { S03.SetActive(true); S01.SetActive(false); S02.SetActive(false); S04.SetActive(false); S05.SetActive(false); S06.SetActive(false); S07.SetActive(false); S08.SetActive(false); } if (idQuestão == "169") { S04.SetActive(true); S01.SetActive(false); S02.SetActive(false); S03.SetActive(false); S05.SetActive(false); S06.SetActive(false); S07.SetActive(false); S08.SetActive(false); } if (idQuestão == "168") { S05.SetActive(true); S01.SetActive(false); S02.SetActive(false); S03.SetActive(false); S04.SetActive(false); S06.SetActive(false); S07.SetActive(false); S08.SetActive(false); } if (idQuestão == "167") { S06.SetActive(true); S01.SetActive(false); S02.SetActive(false); S03.SetActive(false); S04.SetActive(false); S05.SetActive(false); S07.SetActive(false); S08.SetActive(false); } if (idQuestão == "166") { S07.SetActive(true); S01.SetActive(false); S02.SetActive(false); S03.SetActive(false); S04.SetActive(false); S05.SetActive(false); S06.SetActive(false); S08.SetActive(false); } if (idQuestão == "165") { S08.SetActive(true); S01.SetActive(false); S02.SetActive(false); S03.SetActive(false); S04.SetActive(false); S05.SetActive(false); S06.SetActive(false); S07.SetActive(false); } if (idQuestão == "173") { D01.SetActive(true); D02.SetActive(false); D03.SetActive(false); D04.SetActive(false); D05.SetActive(false); D06.SetActive(false); D07.SetActive(false); D08.SetActive(false); } if (idQuestão == "174") { D02.SetActive(true); D01.SetActive(false); D03.SetActive(false); D04.SetActive(false); D05.SetActive(false); D06.SetActive(false); D07.SetActive(false); D08.SetActive(false); } if (idQuestão == "175") { D03.SetActive(true); D01.SetActive(false); D02.SetActive(false); D04.SetActive(false); D05.SetActive(false); D06.SetActive(false); D07.SetActive(false); D08.SetActive(false); } if (idQuestão == "176") { D04.SetActive(true); D01.SetActive(false); D02.SetActive(false); D03.SetActive(false); D05.SetActive(false); D06.SetActive(false); D07.SetActive(false); D08.SetActive(false); } if (idQuestão == "177") { D05.SetActive(true); D01.SetActive(false); D02.SetActive(false); D03.SetActive(false); D04.SetActive(false); D06.SetActive(false); D07.SetActive(false); D08.SetActive(false); } if (idQuestão == "178") { D06.SetActive(true); D01.SetActive(false); D02.SetActive(false); D03.SetActive(false); D04.SetActive(false); D05.SetActive(false); D07.SetActive(false); D08.SetActive(false); } if (idQuestão == "179") { D07.SetActive(true); D01.SetActive(false); D02.SetActive(false); D03.SetActive(false); D04.SetActive(false); D05.SetActive(false); D06.SetActive(false); D08.SetActive(false); } if (idQuestão == "180") { D08.SetActive(true); D01.SetActive(false); D02.SetActive(false); D03.SetActive(false); D04.SetActive(false); D05.SetActive(false); D06.SetActive(false); D07.SetActive(false); } if (idQuestão == "181") { M01.SetActive(true); M02.SetActive(false); M03.SetActive(false); M04.SetActive(false); M05.SetActive(false); M06.SetActive(false); M07.SetActive(false); M08.SetActive(false); } if (idQuestão == "182") { M02.SetActive(true); M01.SetActive(false); M03.SetActive(false); M04.SetActive(false); M05.SetActive(false); M06.SetActive(false); M07.SetActive(false); M08.SetActive(false); } if (idQuestão == "183") { M03.SetActive(true); M01.SetActive(false); M02.SetActive(false); M04.SetActive(false); M05.SetActive(false); M06.SetActive(false); M07.SetActive(false); M08.SetActive(false); } if (idQuestão == "184") { M04.SetActive(true); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); M05.SetActive(false); M06.SetActive(false); M07.SetActive(false); M08.SetActive(false); } if (idQuestão == "185") { M05.SetActive(true); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); M04.SetActive(false); M06.SetActive(false); M07.SetActive(false); M08.SetActive(false); } if (idQuestão == "186") { M06.SetActive(true); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); M04.SetActive(false); M05.SetActive(false); M07.SetActive(false); M08.SetActive(false); } if (idQuestão == "187") { M07.SetActive(true); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); M04.SetActive(false); M05.SetActive(false); M06.SetActive(false); M08.SetActive(false); } if (idQuestão == "188") { M08.SetActive(true); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); M04.SetActive(false); M05.SetActive(false); M06.SetActive(false); M07.SetActive(false); } }
private void temMoedaAparencia() { resposta1.SetActive(true); resposta2.SetActive(false); resposta3.SetActive(false); M01.SetActive(false); M02.SetActive(false); M03.SetActive(false); F01.SetActive(false); F02.SetActive(false); F03.SetActive(false); compraVenda.Play(0); personagem Char = new personagem(); ranking r = new ranking(); switch (parte) { case "M01": Player.runtimeAnimatorController = aM01; Char.Sexo = 1; Char.Estilo = 1; Char.Moedas = Char.Moedas - 100; r.ImgLogica = 11; break; case "M02": Player.runtimeAnimatorController = aM02; Char.Sexo = 1; Char.Estilo = 2; Char.Moedas = Char.Moedas - 100; r.ImgLogica = 12; break; case "M03": Player.runtimeAnimatorController = aM03; Char.Sexo = 1; Char.Estilo = 3; Char.Moedas = Char.Moedas - 100; r.ImgLogica = 13; break; case "F01": Player.runtimeAnimatorController = aF01; Char.Sexo = 2; Char.Estilo = 1; Char.Moedas = Char.Moedas - 100; r.ImgLogica = 21; break; case "F02": Player.runtimeAnimatorController = aF02; Char.Sexo = 2; Char.Estilo = 2; Char.Moedas = Char.Moedas - 100; r.ImgLogica = 22; break; case "F03": Player.runtimeAnimatorController = aF03; Char.Sexo = 2; Char.Estilo = 3; Char.Moedas = Char.Moedas - 100; r.ImgLogica = 23; break; } textoConversa.text = "Parabens! Você comprou uma aparencia"; textoResposta1.text = "Voltar"; parte = "temMoedaAparencia"; }