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