コード例 #1
0
 private void OnEnable()
 {
     Undo.undoRedoPerformed += DoUndo;
     _reorderableList        = new ReorderableList(serializedObject, serializedObject.FindProperty("Waypoints"), true, true, true, true);
     _reorderableList.drawHeaderCallback  += DrawHeader;
     _reorderableList.drawElementCallback += DrawElement;
     _reorderableList.onAddCallback       += AddItem;
     _reorderableList.onRemoveCallback    += RemoveItem;
     _reorderableList.onChangedCallback   += ListModified;
     _reorderableList.onMouseDragCallback += DragItem;
     _pathway                 = (target as Pathway);
     _pathWayNavMeshUI        = new PathWayNavMeshUI(_pathway);
     _pathwayHandles          = new PathwayHandles(_pathway);
     _currentListModification = LIST_MODIFICATION.OTHER;
 }