public void OnBeginDrag(PointerEventData eventData)
    {
        isDraged = true;
        LastX    = convertMousePosition().x;

        monsterBar.OnBeginDrag();
    }
示例#2
0
    public void OnBeginDrag(PointerEventData eventData)
    {
        if (selected || isDraged)
        {
            return;
        }

        isDraged = true;
        noSelectedMonsterTime = 0f;
        LastX = convertMousePosition().x;

        monsterBar.OnBeginDrag();
    }
 void setDrag()
 {
     isDraged = true;
     LastX    = convertMousePosition().x;
     monsterBar.OnBeginDrag();
 }