Exemplo n.º 1
0
 public void AumentaAreaDaPocaSecundario(PowerUpButton button)
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetInt("+AreaDePoça", 1);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetInt("+AreaDePoça", 2);
     }
 }
Exemplo n.º 2
0
 public void AumentarAlcanceBasico(PowerUpButton button)
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetFloat("+Alcance", 0.1f);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetFloat("+Alcance", 0.2f);
     }
 }
Exemplo n.º 3
0
 public void AumentarLentidaoSecundario(PowerUpButton button)
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetFloat("+SlowDown", 0.5f);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetFloat("+SlowDown", 1f);
     }
 }
Exemplo n.º 4
0
 public void AumentarDuracaoEspecial(PowerUpButton button)
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetFloat("Especial+Duraçao", 1);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetFloat("Especial+Duraçao", 2);
     }
 }
Exemplo n.º 5
0
 public void DiminuirCoolDownSecudario(PowerUpButton button)
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetFloat("+Rapido", 2);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetFloat("+Rapido", 3);
     }
 }
Exemplo n.º 6
0
 public void AumentarAreaEspecial(PowerUpButton button)
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetInt("Especial+Area", 1);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetInt("Especial+Area", 2);
     }
 }
Exemplo n.º 7
0
 public void AumentarDanoEspecial(PowerUpButton button)
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetFloat("Especial+Dano", 0.15f);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetFloat("Especial+Dano", 0.3f);
     }
 }
Exemplo n.º 8
0
 public void IndefinidoBasico(PowerUpButton button)//aumenta a porcentagem de chance de +50% de dano
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetInt("+ChanceDe+Dano", 5);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetInt("+ChanceDe+Dano", 8);
     }
 }
Exemplo n.º 9
0
 public void AumentarProjetilBasico(PowerUpButton button)
 {
     if (button.VerificarAtivacao() == 1)
     {
         PlayerPrefs.SetInt("Skill1Bullets", 1);
         PlayerPrefs.SetFloat("+Dano", 0.05f);
     }
     else if (button.VerificarAtivacao() == 2)
     {
         PlayerPrefs.SetInt("Skill1Bullets", 2);
         PlayerPrefs.SetFloat("+Dano", 0.1f);
     }
 }
Exemplo n.º 10
0
    private void Start()
    {
        if (PlayerPrefs.HasKey(nome))
        {
            this.foiAtivada = PlayerPrefs.GetInt(nome);

            if (foiAtivada == 2)
            {
                backImage.fillAmount = 1;
                podeAbrir            = false;
            }
            else
            {
                backImage.fillAmount = 0.5f;
            }

            if (foiAtivada > 0)
            {
                this.desbloquearBotoesDependentes?.Invoke();
            }
        }

        if (temDependencia)
        {
            if (dependencia.VerificarAtivacao() == 0)
            {
                image.color = Color.gray;
                podeAbrir   = false;
            }
        }
    }