My scene can drag to change scene .
I want to when i touch down a button after i move finger to drag scene, button will release but don't fire event OnClick
My code :
[AddComponentMenu("Lunge Mine/UI/UIWithDragScene")]
public class UIWithDragScene : tk2dUIBaseItemControl {
void Update()
{
if(uiItem.IsPressed)
{
if(LGController.state == LGController.State.Animation)
{
uiItem.Release();
}
}
}
}
How can i release a uiitem but don't fire event OnClick