Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Darkdevil79 on March 13, 2015, 01:22:06 PM

Title: UIEventListener OnDrag
Post by: Darkdevil79 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 ?
Title: Re: UIEventListener OnDrag
Post by: ArenMook on March 13, 2015, 10:07:19 PM
OnDrag is already a built-in NGUI event.

Get rid of your UIEventListener line altogether.
Title: Re: UIEventListener OnDrag
Post by: Darkdevil79 on March 14, 2015, 02:51:49 PM
Prefect , Thank you for the help again