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;
     }
 }
Пример #2
0
    protected virtual void Awake()
    {
        if (GetComponent <Collider>() != null)
        {
            customCollider = true;
        }

        if (dragDropHelper == null)
        {
            dragDropHelper = new EZDragDropHelper(this);
        }
        else
        {
            dragDropHelper.host = this;
        }
    }
Пример #3
0
	/// <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);
	}
Пример #4
0
	protected virtual void Awake()
	{
		if (collider != null)
			customCollider = true;

		if (dragDropHelper == null)
			dragDropHelper = new EZDragDropHelper(this);
		else
			dragDropHelper.host = this;
	}
Пример #5
0
	//---------------------------------------------------
	// 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);
	}
Пример #6
0
	public void RemoveDragDropInternalDelegate(EZDragDropHelper.DragDrop_InternalDelegate del)
	{
		dragDropHelper.RemoveDragDropInternalDelegate(del);
	}
Пример #7
0
	public void AddDragDropInternalDelegate(EZDragDropHelper.DragDrop_InternalDelegate del)
	{
		dragDropHelper.AddDragDropInternalDelegate(del);
	}
Пример #8
0
	// Setters for the internal drag drop handler delegate:
	public void SetDragDropInternalDelegate(EZDragDropHelper.DragDrop_InternalDelegate del) { }