Example #1
0
 public void FecharLoja()
 {
     Selecionados.VezLoja = Dados.PlayerIndice.Vazio;
     loja.SetActive(false);
     alvoLoja = null;
     Selecionados.LojaAberta = false;
     Personagem = Dados.Personagens.Nenhum;
     Player     = Dados.PlayerIndice.Vazio;
     Arma       = Dados.Armas.Nenhum;
     ArmaNivel  = Dados.ArmaNivel.Nivel1;
 }
Example #2
0
 public void CarregarDadosSave()
 {
     Player     = alvoLoja.GetComponent <Move>().playerIndice;
     Personagem = alvoLoja.GetComponent <Atributos>().Personagem;
     Arma       = alvoLoja.GetComponent <ControleDeArmas>().arma;
     for (int x = 0; x < AutoSave.ArmasNiveis.Count; x++)
     {
         if (AutoSave.ArmasNiveis[x].arma == Arma)
         {
             ArmaNivel = AutoSave.ArmasNiveis[x].nivel;
             break;
         }
     }
 }
Example #3
0
 public GameObject PegarBarra(Dados.PlayerIndice player)
 {
     BarraDeVida[(int)player - 1].SetActive(true);
     return(BarraDeVida[(int)player - 1]);
 }