public void LoadGame(LoadEventArgs e) { OnLoadingGame(e); if (GetComponent <WizardMode>().IsWizardMode) { GetComponent <SaveLoadFile>().BackupBinary(GameFile); } GetComponent <SaveLoadFile>().DeleteBinary(GameFile); }
public void LoadDungeonLevel(LoadEventArgs e) { OnLoadingDungeon(e); if (GetComponent <WizardMode>().IsWizardMode) { GetComponent <SaveLoadFile>().BackupBinary(DungeonFile); } GetComponent <SaveLoadFile>().DeleteBinary(DungeonFile); }
protected virtual void OnLoadingGame(LoadEventArgs e) { LoadingGame?.Invoke(this, e); }
protected virtual void OnLoadingDungeon(LoadEventArgs e) { LoadingDungeon?.Invoke(this, e); }