private void InitializeState() { if (!state) { state = CreateInstance <FrameCapturerWindowState>(); } }
private void DiscardState() { if (state) { DestroyImmediate(state); state = null; } }