protected virtual void OnSavingGame(SaveEventArgs e) { SavingGame?.Invoke(this, e); }
public void SaveGame(SaveEventArgs e) { OnSavingGame(e); GetComponent <SaveLoadFile>().SaveBinary(e.GameData.ToArray(), GameFile); }
protected virtual void OnSavingDungeon(SaveEventArgs e) { SavingDungeon?.Invoke(this, e); }
public void SaveDungeonLevel(SaveEventArgs e) { OnSavingDungeon(e); GetComponent <SaveLoadFile>().SaveBinary(e.GameData.ToArray(), DungeonFile); }