Esempio n. 1
0
    void Start()
    {
        currentSettings = SaveLoader.LoadSettings();

        gamemodeDisplay.text = currentSettings.gamemode.ToString();
        jumpmodeDisplay.text = currentSettings.jumpmode.ToString();
    }
Esempio n. 2
0
    void Start()
    {
        currentSettings = SaveLoader.LoadSettings();
        currentProgress = SaveLoader.LoadProgress();

        SubscribeToEvents();

        if (currentProgress.Level == currentLevel)
        {
            // for (int i = 0; i < currentProgress.COINs; i++) onLanternLited?.Invoke();
            if (currentProgress.COINs == 3)
            {
                OpenLevelDoor();
            }
        }
        else
        {
            OnNextLevelEnter();
        }

        onAssignCheckpoint?.Invoke(currentProgress.LastCheckpoint);

        onGameStarted?.Invoke(currentProgress);

        Debug.Log(currentProgress.COINs);
    }