Пример #1
0
    private void Init()
    {
        diceEyeCount   = new int[maxDiceEyes];
        activeDiceEyes = new int[maxDiceEyes];
        uiController   = FindObjectOfType <UIController>();
        combos.InitializeDiceComboDict();

        gameScore = PlayerPrefs.GetInt(PlayerPrefsKey.GameScore.ToString(), 0);
        Debug.Log("loaded score: " + gameScore);
        if (gameScore == 0)
        {
            uiController.ShowTutorial();
        }

        uiController.UpdateScore(gameScore);
    }