public override void OnPreviewSettings()
{
Init();
GUI.enabled = !Application.isPlaying;
WebCamTexture target = base.target as WebCamTexture;
bool flag = PreviewGUI.CycleButton(!target.isPlaying ? 0 : 1, s_PlayIcons) != 0;
if (flag != target.isPlaying)
{
if (flag)
{
target.Stop();
target.Play();
}
else
{
target.Pause();
}
}
GUI.enabled = true;
}
}