public void ArrowHitPlayer() { saveData.remainingLives--; UpdateScore(); saveDataSerializer.Save(saveData); }
private void SetUpSaveData() { saveDataSerializer = new SaveDataSerializer(); saveData = saveDataSerializer.Load(); if (saveData == null) { saveData = new SaveData(); saveData.remainingLives = 100; saveDataSerializer.Save(saveData); } }