示例#1
0
        public void SaveAndQuit()
        {
            ExampleActivitySaveData gameSave = DeserializeActivityData <ExampleActivitySaveData>();

            gameSave.MagicNumber = CurrentCount;

            SerializeActivityData(gameSave);
            SaveActivityStateAndTransition <MainMenuViewModel>();
        }
示例#2
0
        private void InitializeFromSaveData()
        {
            ExampleActivitySaveData gameSave = DeserializeActivityData <ExampleActivitySaveData>();

            CurrentCount = gameSave.MagicNumber;
        }