#if UNITY_EDITOR || UNITY_STANDALONE_WIN
if (EventSystem.current.IsPointerOverGameObject())
{
return ;
}
#else
if ((Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began))
{
if (EventSystem.current.IsPointerOverGameObject(Input.GetTouch(0).fingerId))
{
return ;
}
}
#endif