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