// ------------------------------------------------------------------------------------------------------------- void OnEnable() { EditorSaveState state = new EditorSaveState(StateFilename); Name = state.GetState("Name", string.Empty); From = state.GetState("From", string.Empty); Size = (eSize)state.GetState("Size", 0); }
// ------------------------------------------------------------------------------------------------------------- void Awake() { EditorSaveState state = new EditorSaveState(StateFilename); mRenameTo = state.GetState("mRenameTo", string.Empty); mEnumerate = state.GetState("mEnumerate", false); //mLogScrollViewPosition = Vector2.zero; }
// ------------------------------------------------------------------------------------------------------------- void Awake() { EditorSaveState state = new EditorSaveState(StateFilename); mTitle = state.GetState("mTitle", "<title>"); mLog = state.GetState("mLog", string.Empty); mLogScrollViewPosition = Vector2.zero; }