コード例 #1
0
        public void RestoreManagerStates(float currTime)
        {
            TimerManager.PullFromMemento(this.pTimerMemento, currTime);
            GameObjectManager.PullFromMemento(this.pGameObjectMemento);
            ColPairManager.PullFromMemento(this.pColPairMemento);

            SpriteBatch pSpriteBatch = SpriteBatchManager.Find(SpriteBatch.Name.Sprites);

            pSpriteBatch.GetSBNodeManager().PullFromMemento(this.pSpritesSBNodeMemento);
            pSpriteBatch = SpriteBatchManager.Find(SpriteBatch.Name.Boxes);
            pSpriteBatch.GetSBNodeManager().PullFromMemento(this.pSpriteBoxesSBNodeMemento);
        }