public override void Setup()
    {
        game.SetupPlayerReflection(playerReflectionEro);
        game.SetupInteractableFullArt(fullArtParent, isInit);
        isInit = false;

        playerPlayableDirector = game.GetPlayer().Director;

        if (isCutSceneDone)
        {
            foreach (Script_TriggerEnterOnce trigger in cutSceneTriggers)
            {
                trigger.gameObject.SetActive(false);
            }
        }

        if (isDone)
        {
            fireplacePlayable.gameObject.SetActive(false);
            game.DisableExits(false, 0);
            puzzleTriggerController.isComplete = true;
            pushablesParent.gameObject.SetActive(false);
            Script_AudioMixerVolume.SetVolume(
                audioMixer,
                Const_AudioMixerParams.ExposedBGVolume,
                0f
                );
        }
        else
        {
            game.DisableExits(isDisabled: true, 0);

            if (puzzleTriggerController.currentSuccessCount == 1)
            {
                InitializeFire(isClose: true);
            }
            else
            {
                InitializeFire(isClose: false);
            }

            puzzleTriggerController.Setup();
            game.SetupPushables(pushablesParent, isInit);
        }
    }
예제 #2
0
    public override void Setup()
    {
        game.SetupPlayerReflection(playerReflectionIds);
        game.SetupInteractableFullArt(fullArtParent, isInit);
        fireplaceBlockingBox.gameObject.SetActive(true);

        if (isDone)
        {
            PuzzleDoneSetup();
        }
        else
        {
            PuzzleSetup();
        }

        game.SetupPushables(pushablesParent, isInit);
        puzzleTriggerController.Setup();

        isInit = false;
    }