public void SaveAndQuit() { ExampleActivitySaveData gameSave = DeserializeActivityData <ExampleActivitySaveData>(); gameSave.MagicNumber = CurrentCount; SerializeActivityData(gameSave); SaveActivityStateAndTransition <MainMenuViewModel>(); }
private void InitializeFromSaveData() { ExampleActivitySaveData gameSave = DeserializeActivityData <ExampleActivitySaveData>(); CurrentCount = gameSave.MagicNumber; }