Esempio n. 1
0
 public void InformationLevel1()
 {
     if (totalFunds >= 500)
     {
         gameObject.GetComponent <Plague>().insideChance  *= 0.8f;
         gameObject.GetComponent <Plague>().outsideChance *= 0.8f;
         totalFunds -= 500;
         I2.SetActive(true);
         MT2.SetActive(true);
     }
 }
Esempio n. 2
0
    public void Instructions1()
    {
        cmp_lvlSt.challengeActive = true;
        timerstart = true;

        if (tutoTimer >= 2 && tutoTimer < 7)
        {
            I1.SetActive(true);
        }
        else if (tutoTimer >= 7)
        {
            I1.SetActive(false);
            weapons.SetActive(true);
            I2.SetActive(true);
            if (cmp_playerMod.using_weapon == true)
            {
                //Debug.Log("texto explicando ataques");
                if (changeIns == false)
                {
                    tutoTimer = 7;
                    changeIns = true;
                }

                /*if(tutoTimer >= 12)
                 * {
                 *  //Debug.Log("desaparecer ataquess");
                 *  I2.SetActive(false);
                 * }*/
                if (tutoTimer >= 16)
                {
                    I2.SetActive(false);
                    cmp_lvlSt.challengeActive = false;
                }
            }
        }
    }