public void OnEnable() { s_StopOnCompile = EditorPrefs.GetBool(kStopOnCompile, true); s_AutoPlay = EditorPrefs.GetBool(kAutoPlayPref, true); hideFlags = HideFlags.HideAndDontSave; s_Instance = this; }
private static void CreateSingleton() { if (s_Instance == null) { s_Instance = FindObjectOfType <CompileReplay>(); if (s_Instance == null) { s_Instance = CreateInstance <CompileReplay>(); } } }