protected virtual void Awake() { if (base.collider != null) { this.customCollider = true; } if (this.dragDropHelper == null) { this.dragDropHelper = new EZDragDropHelper(this); } else { this.dragDropHelper.host = this; } }
protected virtual void Awake() { if (GetComponent <Collider>() != null) { customCollider = true; } if (dragDropHelper == null) { dragDropHelper = new EZDragDropHelper(this); } else { dragDropHelper.host = this; } }
/// <summary> /// Sets the delegate to be called in order to update the drag /// position of the object being dragged. /// </summary> /// <param name="del">The delegate that will update the object's position.</param> public void SetDragPosUpdater(EZDragDropHelper.UpdateDragPositionDelegate del) { dragDropHelper.SetDragPosUpdater(del); }
protected virtual void Awake() { if (collider != null) customCollider = true; if (dragDropHelper == null) dragDropHelper = new EZDragDropHelper(this); else dragDropHelper.host = this; }
//--------------------------------------------------- // Boilerplate stuff //--------------------------------------------------- protected override void Awake() { base.Awake(); if (dragDropHelper == null) dragDropHelper = new EZDragDropHelper(this); else dragDropHelper.host = this; if (collider != null) customCollider = true; Init(); AddSpriteResizedDelegate(OnResize); }
public void RemoveDragDropInternalDelegate(EZDragDropHelper.DragDrop_InternalDelegate del) { dragDropHelper.RemoveDragDropInternalDelegate(del); }
public void AddDragDropInternalDelegate(EZDragDropHelper.DragDrop_InternalDelegate del) { dragDropHelper.AddDragDropInternalDelegate(del); }
// Setters for the internal drag drop handler delegate: public void SetDragDropInternalDelegate(EZDragDropHelper.DragDrop_InternalDelegate del) { }