// 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; } } }
protected override void EnterNotPassedLevel() { doorTo11.InvisibleWall(true); flameLord.SetActive(true); if (spellScroll) { spellScroll.SetActive(false); } }
protected override void EnterNotPassedLevel() { ActivateAllImportantObjects(); doorTo2.InvisibleWall(true); if (spellScroll) { spellScroll.SetActive(false); } base.EnterNotPassedLevel(); }
private void Update() { if (fireObstacle) { doorTo9.InvisibleWall(true); } else { levelPassed = true; LevelManager.Instance.SetLevelPassed(levelPassed, ID); doorTo9.InvisibleWall(false); } }
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(); }