コード例 #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);
 }