Example #1
0
    public override void Setup()
    {
        switchHandler = GetComponent <Script_LBSwitchHandler>();
        switchHandler.Setup(game);
        switchesStates = switchHandler.SetupSwitchesState(
            lightSwitchesParent,
            switchesStates,
            isInitialize: !isInitialized
            );

        if (game.Run.dayId == Script_Run.DayId.none)
        {
            game.SetupMovingNPC(Ero, isInitialize: !isInitialized);

            EroParent.gameObject.SetActive(true);
            EroIntroTriggersParent.gameObject.SetActive(true);
        }
        else
        {
            EroParent.gameObject.SetActive(false);
            EroIntroTriggersParent.gameObject.SetActive(false);
        }

        isInitialized = true;
    }
    public override void Setup()
    {
        switchHandler = GetComponent <Script_LBSwitchHandler>();
        switchHandler.Setup(game);
        switchesStates = switchHandler.SetupSwitchesState(
            lightSwitchesParent,
            switchesStates,
            isInitialize: isInit
            );
        foreach (Transform t in ptgTextParents)
        {
            game.SetupInteractableObjectsText(t, isInit);
        }

        completionGrid.SetActive(isPuzzleCompleted);

        if (isPuzzleCompleted)
        {
            mirrorReflection.SetActive(false);

            // game.RemovePlayerReflection();
            if (playerReflectionEro != null)
            {
                playerReflectionEro.gameObject.SetActive(false);
            }

            game.SetNewTileMapGround(completionGround);
        }
        else
        {
            // create "mirror"
            // game.CreatePlayerReflection(game.Levels.levelsData[6].playerData.reflectionVector);
            if (playerReflectionEro != null)
            {
                playerReflectionEro.gameObject.SetActive(true);
            }

            game.SetupPlayerReflection(playerReflectionEro);
            mirrorReflection.SetActive(true);
        }

        game.SetupInteractableFullArt(fullArtParent, isInit);

        LightUpPaintingsPuzzleNoteParent.gameObject.SetActive(true);

        isInit = false;
    }
    private void Awake()
    {
        switchHandler = GetComponent <Script_LBSwitchHandler>();
        switchHandler.Setup(game);

        if (isCurrentPuzzleComplete)
        {
            spikeCage.gameObject.SetActive(false);
        }
        else
        {
            spikeCage.gameObject.SetActive(true);
        }

        if (gotIceSpikeSticker)
        {
            iceSpike.gameObject.SetActive(false);
        }
        else
        {
            iceSpike.gameObject.SetActive(true);
        }
    }
    public override void Setup()
    {
        switchHandler = GetComponent <Script_LBSwitchHandler>();
        switchHandler.Setup(game);
        switchesStates = switchHandler.SetupSwitchesState(
            lightSwitchesParent,
            switchesStates,
            isInitialize: !isInitialized
            );

        if (melancholyPianoSticker != null)
        {
            if (didPickUpMelancholyPianoSticker)
            {
                melancholyPianoSticker.gameObject.SetActive(false);
            }
            else
            {
                melancholyPianoSticker.gameObject.SetActive(true);
            }
        }

        isInitialized = true;
    }