Пример #1
0
 void OnDisable()
 {
     if (_IsChanged)
     {
         if (UnityEditor.EditorUtility.DisplayDialog("Save", "Save changes to translate Dictionary?", "Save", "Don't Save"))
         {
             Save();
         }
     }
     _Instance = null;
 }
Пример #2
0
 void OnDestroy()
 {
     _Instance = null;
 }