Exemple #1
0
 public Snapshot(SnapshotRestoreOptions options, GameObject target,
                 SpriteRenderer spriteRenderer = null)
 {
     this.options        = options;
     this.target         = target;
     this.spriteRenderer = spriteRenderer;
 }
Exemple #2
0
        static public Snapshot TakeSnapshot(SnapshotRestoreOptions options, GameObject target,
                                            SpriteRenderer spriteRenderer = null)
        {
            Snapshot snapshot = new Snapshot(options, target, spriteRenderer);

            snapshot.Capture();
            return(snapshot);
        }