Ejemplo n.º 1
0
    private void Awake()
    {
        ShouldFadeInTitleTrack = true;
        TitleScreenMusic       = FMODUnity.RuntimeManager.CreateInstance("event:/Music/titleScreenMusicV1");
        LevelChangerAnimator   = GameObject.Find("LevelChanger").GetComponent <Animator>();
        BlackFade = GameObject.Find("BlackFade");

        PostFirstPuzzleMusic = FMODUnity.RuntimeManager.CreateInstance("event:/Music/firstPuzzleMusicBaseLayer");
        PostBathroomMusic    = FMODUnity.RuntimeManager.CreateInstance("event:/Music/secondPuzzleMusicBase");

        TriggerLayerChangeScript = gameObject.GetComponent <TriggerLayerChange>();
    }
Ejemplo n.º 2
0
    public void TransitionsForCemeteryLevelFromIntroCutscene()
    {
        //LoadCemeteryLevelFromIntroCutscene();
        PlayUISounds.UISelectionGhostVoiceSound.start();

        Part1Text = GameObject.Find("Part1 Text");
        TriggerLayerChangeScript = Part1Text.GetComponent <TriggerLayerChange>();

        BlackFade.SetActive(true);

        LevelChangerAnimator.Play("FadeOut", 0, 0.25f);

        if (!TriggerLayerChangeScript.ShouldTransitionToBassoonPart)
        {
            TriggerLayerChangeScript.ShouldTransitionToBassoonPart = true;
        }
    }