Exemple #1
0
 public void EndDragAction()
 {
     RaiseDropEvent();
     m_dragStopped = false;
     m_hoveredSlot = null;
     if (m_draggedItem != null)
     {
         m_draggedItem.SetActive(false);
         m_draggedItem = null;
     }
 }
Exemple #2
0
 public void StartDrag(BaseDragObject p_dragObject)
 {
     m_draggedItem                = p_dragObject;
     m_draggedItem.Sprite         = m_sprite;
     m_draggedItem.ActionSprite   = m_actionSprite;
     m_draggedItem.ItemCounter    = m_itemCounter;
     m_draggedItem.ScrollSprite   = m_scrollSprite;
     m_draggedItem.BrokenSprite   = m_brokenSprite;
     m_draggedItem.ItemBackground = m_itemBackground;
     m_draggedItem.CharacterHud   = m_characterHud;
     if (m_draggedItem != null)
     {
         m_draggedItem.Update();
         m_draggedItem.SetActive(true);
         Update();
         RaiseDragEvent();
     }
     AudioController.Play("Drag");
 }