本文整理汇总了C#中Card.GetCardName方法的典型用法代码示例。如果您正苦于以下问题:C# Card.GetCardName方法的具体用法?C# Card.GetCardName怎么用?C# Card.GetCardName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Card
的用法示例。
在下文中一共展示了Card.GetCardName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowCardInfo
/// <summary>
/// 根据脚本显示出卡片信息
/// </summary>
private void ShowCardInfo(Card card)
{
this.CardName.text = card.GetCardName();
this.CardType.text = CardTypes.GetCardTypeNames(card.GetCardType());
this.CardRarity.text = CardRaritys.GetCardRarityNames(card.GetCardRarity());
this.CardOwner.text = card.GetCardOwner();
this.CardDes.text = card.GetCardDescription();
}
示例2: AddState
/// <summary>
/// 添加卡片状态
/// </summary>
public void AddState(StateSkill state, Card from)
{
state.SetOwnerCard(this);//设置状态的拥有者
this.cardState.Add(state, from);//状态,来源
LogsSystem.Instance.Print(
string.Format("角色 {0} 获得状态 {1} ,持续 {2} 回合(来自:{3})", CardNames.Instance.GetCardName(this.cardName), SkillNames.Instance.GetSkillName(state.GetSkillCommonName()), state.GetLastRound(), from.GetCardName())
);
}
示例3: AddCardGroup
/// <summary>
/// 成组添加卡片
/// 一组六个
/// </summary>
public void AddCardGroup(Card beginCard)
{
int beginid = beginCard.GetCardID();
for (int i = 1; i <= 6; i++)
{
//通用成员属性
int cardId = beginid + i - 1;
string cardName = beginCard.GetCardName();
CardRarity cardRarity = (CardRarity)i;
string cardDescription = beginCard.GetCardDescription();
if (beginCard is CharacterCard)//如果是角色卡
{
//角色卡成组通用参数
CharacterCard beginCharacterCard = beginCard as CharacterCard;
AddCard(new CharacterCard(cardId, cardName, cardRarity, cardDescription));
}
else if (beginCard is ItemCard)
{
AddCard(new ItemCard(cardId, cardName, cardRarity, cardDescription));
//AddCard(new Card(beginid + i - 1, beginCard.GetCardName(), beginCard.GetCardType(), beginCard.GetCardSkillList(), (CardRarity)i, beginCard.GetCardDescription()));
}
}
}