示例#1
0
 public void CopyPanel(CardPanel panel)
 {
     CardPanel.IAssignedPanel newPanel = panel.GetModel().Duplicate();
     panelManager.SetOrganizedPanels(false);
     panelManager.AddPanel(newPanel, false /*added from library*/, false /*draggedOn */);
     panelManager.SetupPanelPlacementAndNotes(model);
 }
示例#2
0
    public void OnEndDrag(PointerEventData eventData)
    {
        Debug.Log("END DRAG");

        cardPanel.OnEndDrag();
        // May have been deleted (dragged into trash)
        if (cardPanel.GetModel() != null)
        {
            cardPanel.SetUseMetadata($"Move {this.cardPanel.GetModel().GetTitle()} panel");
        }
    }
示例#3
0
 private bool IsPanelOverTrash()
 {
     return(RectTransformUtility.RectangleContainsScreenPoint(cardManager.trash, Input.mousePosition) &&
            draggedPanel != null &&
            draggedPanel.GetModel().GetId() != BehaviorCards.GetMiscPanelId());
 }