コード例 #1
0
ファイル: gameManager.cs プロジェクト: deiden26/BlackBlueNavy
    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);
    }