2D Toolkit Forum
2D Toolkit => Support => Topic started by: quangtu89 on August 22, 2013, 02:46:41 am
-
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
-
So do you want it to fire or not? You are saying it doesn't fire the OnClick, and then you're asking the same question about how to do what you've already got again?
-
I say I want to don't fire on click