Beispiel #1
0
 //Store snapshots
 void StoreActorState()
 {
     if (objectSnapshot == null && transformSnapshot == null)
     {
         objectSnapshot    = new ObjectSnapshot(actor);
         transformSnapshot = new TransformSnapshot(actor, TransformSnapshot.StoreMode.All);
     }
 }
Beispiel #2
0
 //Restore snapshots
 void RestoreActorState()
 {
     if (objectSnapshot != null)
     {
         objectSnapshot.Restore();
         objectSnapshot = null;
     }
     if (transformSnapshot != null)
     {
         transformSnapshot.Restore();
         transformSnapshot = null;
     }
 }
Beispiel #3
0
 //Store snapshots
 void Store()
 {
     objectSnapshot    = new ObjectSnapshot(actor);
     transformSnapshot = new TransformSnapshot(actor, TransformSnapshot.StoreMode.All);
 }