public FileSubstate(int saveID) { _saveID = saveID; Save = GlobalState.Save.GetSave($"Save_{saveID + 1}.dat"); confirmState = 0; SetLabels(); _showHealth = SaveExists; }
private void DeletedSave() { _state = State.Game; _gameLabel.SetText(DialogueManager.GetDialogue("misc", "any", "title", 12)); _gameLabel.IsVisible = true; _newGameLabel.IsVisible = false; _copyLabel.IsVisible = false; _confirmLabel.IsVisible = false; _yesLabel.IsVisible = false; _noLabel.IsVisible = false; _timeLabel.IsVisible = false; _deathLabel.IsVisible = false; _cardLabel.IsVisible = false; _showHealth = false; File.Delete(Path.GetFullPath($"Save_{_saveID + 1}.dat")); Save = null; }