public void Cleanup()
{
if (this.m_Camera != null)
{
Object.DestroyImmediate(this.m_Camera.gameObject, true);
}
if (this.m_RenderTexture != null)
{
Object.DestroyImmediate(this.m_RenderTexture);
this.m_RenderTexture = null;
}
foreach (Light light in this.m_Light)
{
if (light != null)
{
Object.DestroyImmediate(light.gameObject, true);
}
}
}