}//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
void Start() { //Load level info saveData = SaveSystem.instance.LoadGame(); countText.text = "Keys: " + saveData.getKeys().ToString(); winStats.SetActive(false); }