28 lines
683 B
C#
28 lines
683 B
C#
using Continentis.MainGame.UI;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace Continentis.MainGame.Card
|
|
{
|
|
public partial class HandCardView : CardViewBase
|
|
{
|
|
public PileBase currentPile;
|
|
|
|
public GameObject cardOrb;
|
|
}
|
|
|
|
public partial class HandCardView
|
|
{
|
|
/// <summary>
|
|
/// 将CardView物体转入对应的Pile UI中
|
|
/// </summary>
|
|
public void TransferCardView(PileBase targetPile)
|
|
{
|
|
currentPile?.RemoveCard(this);
|
|
targetPile.AddCard(this);
|
|
currentPile = targetPile;
|
|
|
|
//cardTransform.localPosition = Vector3.zero;
|
|
}
|
|
}
|
|
} |