Ejemplo n.º 1
0
 public override void SaveIfNeeded()
 {
     if (store.IsDirty(true) ||  profileDirty)
     {
         Save();
     }
 }
Ejemplo n.º 2
0
        public override void SaveIfNeeded()
        {
            // Unity overrides the == operator and this will be true if the profile
            // has been destroyed
            if (this == null)
            {
                return;
            }

            // Make sure changes to the store get serialized
            if (store.IsDirty(true))
            {
                EditorUtility.SetDirty(this);
            }
        }