Esempio n. 1
0
        public void SaveAndQuit()
        {
            ExampleActivitySaveData gameSave = DeserializeActivityData <ExampleActivitySaveData>();

            gameSave.MagicNumber = CurrentCount;

            SerializeActivityData(gameSave);
            SaveActivityStateAndTransition <MainMenuViewModel>();
        }
Esempio n. 2
0
        private void InitializeFromSaveData()
        {
            ExampleActivitySaveData gameSave = DeserializeActivityData <ExampleActivitySaveData>();

            CurrentCount = gameSave.MagicNumber;
        }