Author Topic: UIEventListener OnDrag  (Read 3472 times)

Darkdevil79

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
UIEventListener OnDrag
« on: March 13, 2015, 01:22:06 PM »
I setup the code and all works fine , but I keep get the below error
UIEventListener.Get(gameObject).onDrag += OnDrag;

Failed to call function OnDrag of class ComboCard
Calling function OnDrag with 1 parameter but the function requires 2.

Any ideas ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIEventListener OnDrag
« Reply #1 on: March 13, 2015, 10:07:19 PM »
OnDrag is already a built-in NGUI event.

Get rid of your UIEventListener line altogether.

Darkdevil79

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UIEventListener OnDrag
« Reply #2 on: March 14, 2015, 02:51:49 PM »
Prefect , Thank you for the help again