Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (fireObstacle == null)
        {
            doorTo7.InvisibleWall(false);
            doorFrom7.InvisibleWall(false);
        }
        else
        {
            doorTo7.InvisibleWall(true);
            doorFrom7.InvisibleWall(true);
        }

        if (button.IsPressed())
        {
            if (!doorIsOpen)
            {
                fenceDoor.SetTrigger("Open");
                doorIsOpen = true;
            }
        }
        else
        {
            if (doorIsOpen)
            {
                fenceDoor.SetTrigger("Close");
                doorIsOpen = false;
            }
        }
    }
Beispiel #2
0
 protected override void EnterNotPassedLevel()
 {
     doorTo11.InvisibleWall(true);
     flameLord.SetActive(true);
     if (spellScroll)
     {
         spellScroll.SetActive(false);
     }
 }
Beispiel #3
0
 protected override void EnterNotPassedLevel()
 {
     ActivateAllImportantObjects();
     doorTo2.InvisibleWall(true);
     if (spellScroll)
     {
         spellScroll.SetActive(false);
     }
     base.EnterNotPassedLevel();
 }
Beispiel #4
0
 private void Update()
 {
     if (fireObstacle)
     {
         doorTo9.InvisibleWall(true);
     }
     else
     {
         levelPassed = true;
         LevelManager.Instance.SetLevelPassed(levelPassed, ID);
         doorTo9.InvisibleWall(false);
     }
 }
Beispiel #5
0
 protected override void EnterNotPassedLevel()
 {
     doorTo6.InvisibleWall(true);
     doorTo8.InvisibleWall(true);
     if (rogue)
     {
         rogue.SetActive(true);
         rogue.GetComponent <BaseAIController>().ChangeAIState(rogueStartState);
     }
     if (spellScroll)
     {
         spellScroll.SetActive(false);
     }
     base.EnterNotPassedLevel();
 }