protected void Awake() { IMovieRecordingUnit <T> unit = CreateRecordingUnit(); Assert.IsNotNull(unit); this.unit = unit; }
protected void OnDestroy() { if (unit != null) { unit.Dispose(); unit = null; } }
public EditorMovieRecorder(IMovieRecordingUnit <T> unit) { this.unit = unit; }