Пример #1
0
    public void Release()
    {
        systems.ForEach(s => s.Release());

        IMemento memento = achievementSystem.CreateMemento(); //成就系统创建备忘录

        CareTaker.SaveMemento(memento);                       //保存到备忘录
    }
Пример #2
0
    private void CreateMemento()
    {
        AchievementMemento memento = mArchievementSystem.CreateMemento();

        memento.SaveData();
    }
Пример #3
0
    public void CreateMemento()
    {
        AchievementMemento memento = mAchievementSystem.CreateMemento();

        memento.SaveData();
    }