public DragPointsInspectorHelper(IMainRenderableComponent mainComponent, IDragPointsInspector dragPointsInspector) { _mb = mainComponent as MonoBehaviour; _mainComponent = mainComponent; _dragPointsInspector = dragPointsInspector; _playfieldComponent = mainComponent.gameObject.GetComponentInParent <PlayfieldComponent>();; DragPointsHandler = new DragPointsHandler(mainComponent, _dragPointsInspector); }
protected override void OnDisable() { base.OnDisable(); DragPointsHandler = null; Undo.undoRedoPerformed -= OnUndoRedoPerformed; }
protected override void OnEnable() { base.OnEnable(); DragPointsHandler = new DragPointsHandler(target); Undo.undoRedoPerformed += OnUndoRedoPerformed; }
public DragPointsSceneViewHandler(DragPointsHandler handler) { _handler = handler; }
public void OnDisable() { DragPointsHandler = null; Undo.undoRedoPerformed -= OnUndoRedoPerformed; }