Esempio n. 1
0
    /*string[] diaArray =
     * {
     *  ""
     * };*/

    // Initialization
    void Start()
    {
        alchemyScript = AlchemyMaster.GetComponent <AlchemyManager>();

        Time.timeScale    = 0f;
        instructions.text = tutText[tutTextIndex];
        disableElement(alchemyScript.diamondButton);
        disableElement(alchemyScript.emeraldButton);
        disableElement(alchemyScript.sapphireButton);
        disableElement(alchemyScript.rubyButton);
        disableElement(alchemyScript.amethystButton);
        alchemyScript.setMaxEssence(50, 0);
        enableWalls(false);
        spellFlags = new bool[16];
    }
Esempio n. 2
0
 public void nextItem()
 {
     if (tutTextIndex < tutText.Length - 1)
     {
         instructions.text = tutText[++tutTextIndex];
         if (tutTextIndex == 3)
         {
             Time.timeScale = 1f;
             enableElement(alchemyScript.amethystButton);
             indicate(alchemyScript.amethystButton, true);
             if (spellFlags[9] == false)
             {
                 enableNav(false);
             }
         }
         if (tutTextIndex == 4)
         {
             if (!oneSpawned)
             {
                 enableNav(false);
                 LevelMaster.GetComponent <LevelMaster>().spawnPhase(LevelMaster.GetComponent <LevelMaster>().waves[0].phases[0]);
                 alchemyScript.setMaxEssence(50, 50);
                 oneSpawned = true;
             }
         }
         if (tutTextIndex == 5)
         {
             enableWalls(true);
             enableElement(alchemyScript.emeraldButton);
             indicate(alchemyScript.emeraldButton, true);
             if (spellFlags[0] == false)
             {
                 enableNav(false);
             }
         }
         if (tutTextIndex == 6)
         {
             if (!twoSpawned)
             {
                 enableNav(false);
                 LevelMaster.GetComponent <LevelMaster>().spawnPhase(LevelMaster.GetComponent <LevelMaster>().waves[0].phases[1]);
                 alchemyScript.setMaxEssence(50, 50);
                 twoSpawned = true;
             }
         }
         if (tutTextIndex == 7)
         {
             alchemyScript.setMaxEssence(100, 100);
             indicate(alchemyScript.emeraldButton, true);
             indicate(alchemyScript.amethystButton, true);
             if (spellFlags[2] == false)
             {
                 enableNav(false);
             }
         }
         if (tutTextIndex == 8)
         {
             if (!threeSpawned)
             {
                 enableNav(false);
                 LevelMaster.GetComponent <LevelMaster>().spawnPhase(LevelMaster.GetComponent <LevelMaster>().waves[0].phases[2]);
                 alchemyScript.setMaxEssence(100, 100);
                 threeSpawned = true;
             }
         }
         if (tutTextIndex == 10)
         {
             enableElement(alchemyScript.diamondButton);
             enableElement(alchemyScript.rubyButton);
             enableElement(alchemyScript.sapphireButton);
             alchemyScript.setMaxEssence(10000, 10000);
             spellText.gameObject.SetActive(true);
             enableNav(false);
             if (!fourSpawned)
             {
                 LevelMaster.GetComponent <LevelMaster>().spawnPhase(LevelMaster.GetComponent <LevelMaster>().waves[0].phases[3]);
                 fourSpawned = true;
             }
         }
     }
 }