Exemplo n.º 1
0
    // -------------------------------------------------------------------------------------------------------------
    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);
    }
Exemplo n.º 2
0
    // -------------------------------------------------------------------------------------------------------------
    void OnDisable()
    {
        EditorSaveState state = new EditorSaveState(StateFilename);

        state.SetState("mRenameTo", mRenameTo);
        state.SetState("mEnumerate", mEnumerate);

        state.Save();
    }
Exemplo n.º 3
0
    // -------------------------------------------------------------------------------------------------------------
    void Awake()
    {
        EditorSaveState state = new EditorSaveState(StateFilename);

        mRenameTo  = state.GetState("mRenameTo", string.Empty);
        mEnumerate = state.GetState("mEnumerate", false);

        //mLogScrollViewPosition = Vector2.zero;
    }
Exemplo n.º 4
0
    // -------------------------------------------------------------------------------------------------------------
    void OnDisable()
    {
        EditorSaveState state = new EditorSaveState(StateFilename);

        state.SetState("mTitle", mTitle);
        state.SetState("mLog", mLog);

        state.Save();
    }
Exemplo n.º 5
0
    // -------------------------------------------------------------------------------------------------------------
    void Awake()
    {
        EditorSaveState state = new EditorSaveState(StateFilename);

        mTitle = state.GetState("mTitle", "<title>");
        mLog   = state.GetState("mLog", string.Empty);

        mLogScrollViewPosition = Vector2.zero;
    }
Exemplo n.º 6
0
    // -------------------------------------------------------------------------------------------------------------
    void OnDisable()
    {
        EditorSaveState state = new EditorSaveState(StateFilename);

        state.SetState("Name", Name);
        state.SetState("From", From);
        state.SetState("Size", (int)Size);

        state.Save();
    }