本文整理汇总了C#中Card.BindAnim方法的典型用法代码示例。如果您正苦于以下问题:C# Card.BindAnim方法的具体用法?C# Card.BindAnim怎么用?C# Card.BindAnim使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Card
的用法示例。
在下文中一共展示了Card.BindAnim方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindFromDeckUpdate
/**
* This method performs the animation of the cards that will be send to Bind Zone. And also performs
* the remove from deck, add to bind and networking communication. This method must be call in a
* Update function after a BindFromDeck method was called. When all Cards passed in the BindFromDeck
* argument were sent to BindZone, func delegate will be executed.
*/
public void BindFromDeckUpdate(Void0ParamsDelegate func)
{
if(BindFromDeck_Active)
{
if(BindFromDeck_Card == null || !BindFromDeck_Card.AnimationOngoing())
{
if(BindFromDeck_Card != null)
{
//Remove from deck and add to BindZone.
Game.playerDeck.RemoveFromDeck(BindFromDeck_Card);
Game.field.AddToBindZone(BindFromDeck_Card);
BindFromDeck_Card = null;
}
//Send the next card in the list, if any. If not, func delegate is called.
if(BindFromDeck_CardList.Count > 0)
{
BindFromDeck_Card = BindFromDeck_CardList[0];
BindFromDeck_CardList.RemoveAt(0);
BindFromDeck_Card.TurnUp();
BindFromDeck_Card.BindAnim();
Game.SendPacket (GameAction.BIND_FROM_DECK, BindFromDeck_Card.cardID);
}
else
{
BindFromDeck_Active = false;
func();
}
}
}
}
示例2: BindEnemyUnit
public bool BindEnemyUnit(Card c)
{
Game.SendPacket(GameAction.SEND_TO_BINDZONE_ALLY, c.pos);
Game.enemyField.RemoveFrom(Util.TransformToEquivalentEnemyPosition(c.pos));
Game.enemyField.AddToBindZone(c);
c.BindAnim();
return true;
}
示例3: EnemyBindHand
public void EnemyBindHand(Card c)
{
EnemyBindCard = c;
EnemyBindCard.BindAnim();
}
示例4: FromHandToBind
public void FromHandToBind(Card c, int handPosition, bool bFacedown = false)
{
c.BindAnim();
//int iFacedown = 0;
//if(bFacedown) iFacedown = 1;
SendPacket (GameAction.FROM_HAND_TO_BIND, c.cardID, handPosition);
}
示例5: BindHand
public void BindHand(Card c)
{
BindCard = c;
BindCard.BindAnim();
}