// Update is called once per frame void Update() { if (numCorrectSymbols == 3) { OpenPuzzleDoor openPuzz = GameObject.FindGameObjectWithTag("PuzzleDoor").GetComponent <OpenPuzzleDoor>(); GameObject.FindGameObjectWithTag("SoundFXManager").GetComponent <SoundManager>().PlayPuzzleSuccess(); // = GameObject.FindGameObjectWithTag("PuzzleDialogue2"); // consoleCam.enabled = false; //consoleOutline.SetActive(false); //sun.SetActive(false); openPuzz.OpenThePuzzDoor(); dmanage2.OpenDialogue3(); dialogue2.SetActive(true); //GameObject.Find("EventSystem").GetComponent<EventSystem>().SetSelectedGameObject(GameObject.Find("Button"), null); GameObject.Find("PuzzleConsole").GetComponent <EnablePointerGrab>().DisablePointerGrab(); dialogue2.GetComponentInChildren <Text>().text = "Sounds like a door opened"; dmanage2.MakeWait(); activePuzzOne.ClosePuzzle(); } }
// Use this for initialization void Start() { openPuzzDoor = GameObject.FindGameObjectWithTag("PuzzleDoor").GetComponent <OpenPuzzleDoor>(); count = 0; }