예제 #1
0
 //Store snapshots
 void StoreActorState()
 {
     if (objectSnapshot == null && transformSnapshot == null)
     {
         objectSnapshot    = new ObjectSnapshot(actor);
         transformSnapshot = new TransformSnapshot(actor, TransformSnapshot.StoreMode.All);
     }
 }
예제 #2
0
 //Restore snapshots
 void RestoreActorState()
 {
     if (objectSnapshot != null)
     {
         objectSnapshot.Restore();
         objectSnapshot = null;
     }
     if (transformSnapshot != null)
     {
         transformSnapshot.Restore();
         transformSnapshot = null;
     }
 }
예제 #3
0
파일: CutsceneGroup.cs 프로젝트: jonntd/Xbl
 //Store snapshots
 void Store()
 {
     objectSnapshot    = new ObjectSnapshot(actor);
     transformSnapshot = new TransformSnapshot(actor, TransformSnapshot.StoreMode.All);
 }