public Snapshot(SnapshotRestoreOptions options, GameObject target, SpriteRenderer spriteRenderer = null) { this.options = options; this.target = target; this.spriteRenderer = spriteRenderer; }
static public Snapshot TakeSnapshot(SnapshotRestoreOptions options, GameObject target, SpriteRenderer spriteRenderer = null) { Snapshot snapshot = new Snapshot(options, target, spriteRenderer); snapshot.Capture(); return(snapshot); }