コード例 #1
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();
    }
コード例 #2
0
    // activate game complete
    public void gameComplete()
    {
        // turn off the fourth video
        Video4.SetActive(false);

        // Switch out the material on the screen to the success video
        GetComponent <Renderer>().material = VideoSuccessMaterial;

        // set the success video active
        VideoSuccess.SetActive(true);

        // open the door
        Animator mainDoorAnimation = MainDoor.GetComponent <Animator>();

        mainDoorAnimation.PlayInFixedTime("LiftDoorOpen");
    }