Exemplo n.º 1
0
    private void storeGameValues(bool didWin)
    {
        float health    = penguinManager.getHealth();
        int   coinCount = penguinManager.getCoinCount();
        float time      = runSceneUIController.getTime();

        int didWinInt = didWin ? 1 : 0;

        PlayerPrefs.SetInt("health", (int)health);
        PlayerPrefs.SetInt("coins", coinCount);
        PlayerPrefs.SetInt("time", (int)time);
        PlayerPrefs.SetInt("didWin", didWinInt);
    }