Пример #1
0
    public void EnterArea()
    {
        var miniCard = _poolMgr.Spwan(SizeType.MiniCard.ToString(), _draggingRoot.transform);

        _poolMgr.Despwan(_draggingRoot.CurDraggingCard.Type.ToString(), _draggingRoot.CurDraggingCardTrans);
        _draggingRoot.SetDraggingCard(miniCard, _draggingRoot.CurDragComponent, _draggingRoot.CurDraggingCard.Model);
    }
Пример #2
0
    public void ExitArea()
    {
        SetCardGraphicState(false);

        var card     = _draggingRoot.CurDraggingCard;
        var cardTemp = _poolMgr.Spwan(card.Type.ToString(), _draggingRoot.transform);

        _draggingRoot.SetDraggingCard(cardTemp, _draggingRoot.CurDragComponent, card.Model);
    }