예제 #1
0
    }//end of CheckWinState

    void CheckKeyCollection()
    {
        if (LocalData.keyCollected)
        {
            saveData.setKeys(saveData.getKeys() + 1);
            countText.text         = "Keys: " + saveData.getKeys().ToString();
            LocalData.keyCollected = false;
        }
    }//end of CheckKeyCollection
예제 #2
0
    void Start()
    {
        //Load level info
        saveData = SaveSystem.instance.LoadGame();

        countText.text = "Keys: " + saveData.getKeys().ToString();
        winStats.SetActive(false);
    }