예제 #1
0
        private void OnDisable()
        {
            Undo.undoRedoPerformed -= PrecessUndo;

            EditorActions.Clear();
            EditorState.Clear();
            EditorState.Repaint = null;
            States = null;
        }
예제 #2
0
        private void OnEnable()
        {
            Undo.undoRedoPerformed += PrecessUndo;

            EditorActions.Clear();
            EditorState.Clear();
            EditorState.Repaint = Repaint;

            States = (States)target;

            SerializedState = serializedObject;

            EditorGroup.Enable(States.Group);
        }