public void Release() { if (m_RGBTexture != null) { m_RGBTexture.Stop(); m_RGBTexture.Dispose(); } if (m_CameraInput != null) { m_CameraInput.Dispose(); } m_IsInit = false; DestroyImmediate(gameObject); }
public void Release() { if (m_RGBTexture != null) { m_RGBTexture.Stop(); m_RGBTexture.Dispose(); } if (m_BlendCamera != null) { m_BlendCamera.Dispose(); } if (m_Encoder != null) { m_Encoder.Destory(); } this.m_IsInit = false; DestroyImmediate(gameObject); }