Unity doesn't save changes

I have a script- using System.Collections;using System.Collections.Generic;using Assets.Resou - Pastebin.com . It’s being attached to a prefab. Every time I restart unity(after saving everything) all the property values are reseted to default. Why?! Also my previous question which I consider to be closely related to the problem. Please… why would this happen?

UPDATE1: So I know that unity can’t have properties in the editor and that’s why I made myself this custom editor in order to be able to use props in the editor. I made all the props to public fields(smth I don’t like) and it worked perfectly fine with sliders or whatever UI you can think of. What am I doing wrong with the props? The way I’m exposing them or what?

P.S. I experimented with whatever other components you could think of and it worked with all of them. Including other scripts made by me with some checks on them(without having an editor code).

Restore your scene from crashed Unity3D instance
Unity crashed? You haven’t saved your scene for a while? Worry not! You can still restore it from temporary directory!

Unity3D can crash a lot. Unity API is giving a great freedom but in a cost of stability. What to do if Unity has crashed on you and you has not been saving your scene for a while? It’s easy, but do not launch Unity3D until you finish these steps.

  1. Go to your project folder.

  2. Go into the Temp folder.

  3. Find file called __EditModeScene. This is your scene file saved by the editor.

  4. Rename it to your_scene_name.unity and move it anywhere to your Assets folder.

  5. Now you can run your Unity3D instance!