public static void LoadMemento(this GameFacade gameFacade) { ArchievementMemento archievementMemento = new ArchievementMemento(); archievementMemento.LoadData(); gameFacade.ArchievementSystem.SetMemento(archievementMemento); }
public ArchievementMemento CreateMemento() { ArchievementMemento archievementMemento = new ArchievementMemento(); archievementMemento.EnemyKilledCount = enemyKilledCount; archievementMemento.SoldierKilledCount = soldierKilledCount; archievementMemento.MaxStageLv = maxStageLv; return(archievementMemento); }
public static void CreateMemento(this GameFacade gameFacade) { ArchievementMemento memento = gameFacade.ArchievementSystem.CreateMemento(); memento.SaveData(); }
public void SetMemento(ArchievementMemento memento) { enemyKilledCount = memento.EnemyKilledCount; soldierKilledCount = memento.SoldierKilledCount; maxStageLv = memento.MaxStageLv; }