protected void OnEnable() { if (m_Recorder == null) { m_Recorder = FindObjectsOfType <MonoBehaviour>().OfType <IMovieRecorder>().FirstOrDefault(); } }
void OnEnable() { #if UNITY_EDITOR if (m_recorder == null) { m_recorder = FindObjectOfType<IMovieRecorder>(); } #endif // UNITY_EDITOR }
void OnEnable() { #if UNITY_EDITOR if (m_recorder == null) { m_recorder = FindObjectOfType <IMovieRecorder>(); } #endif // UNITY_EDITOR }
protected void OnEnable() { #if UNITY_EDITOR if (m_Recorder == null) { m_Recorder = FindObjectsOfType <MonoBehaviour>().OfType <IMovieRecorder>().FirstOrDefault(); } Assert.IsNotNull(m_Recorder); #endif // UNITY_EDITOR }