Beispiel #1
0
 private void OnEnable()
 {
     path   = EditorPrefs.GetString(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_KEYS_PATH), "Assets/");
     showAd = EditorPrefs.GetBool(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_KEYS_SHOW_AD), true);
     if (showAd)
     {
         Rect r = position;
         r.size   = SIZE_LARGE;
         position = r;
     }
 }
Beispiel #2
0
 private void OnDisable()
 {
     EditorPrefs.SetString(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_KEYS_PATH), path);
     EditorPrefs.SetBool(EditorCommon.GetProjectRelatedEditorPrefsKey(EDITOR_PREF_KEYS_SHOW_AD), showAd);
 }