private void SetCurrentFrame(int frame)
{
if ((((frame != -1) && Profiler.enabled) && (!ProfilerDriver.profileEditor && (this.m_CurrentFrame != frame))) && EditorApplication.isPlayingOrWillChangePlaymode)
{
EditorApplication.isPaused = true;
}
if (ProfilerInstrumentationPopup.InstrumentationEnabled)
{
ProfilerInstrumentationPopup.UpdateInstrumentableFunctions();
}
this.SetCurrentFrameDontPause(frame);
}