示例#1
0
    // activates the third puzzle to play
    public void activateThirdPuzzle()
    {
        // Turn off the second clue video
        Video2.SetActive(false);

        // Switch out the material on the screen to Clue3 and activate the Clue video
        GetComponent <Renderer>().material = Clue3;

        // Set the video to active
        Video3.SetActive(true);
    }
示例#2
0
    // activates the fourth puzzle to play
    public void activateFourthPuzzle()
    {
        // Turn off the third clue video
        Video3.SetActive(false);

        // Switch out the material on the screen to Clue4 and activate the Clue video
        GetComponent <Renderer>().material = Clue4;

        // Set the video to active
        Video4.SetActive(true);

        // spawn a red button next to the door, this button will aloow the user to open the door to the balcony
        puzzle4.spawnRedButton();
    }