}//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