本文整理汇总了C#中Card.TurnDown方法的典型用法代码示例。如果您正苦于以下问题:C# Card.TurnDown方法的具体用法?C# Card.TurnDown怎么用?C# Card.TurnDown使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Card
的用法示例。
在下文中一共展示了Card.TurnDown方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddToHand
public void AddToHand(Card card)
{
hand.Add(card);
//card.GetGameObject().transform.eulerAngles = new Vector3(24.0f, 180.0f, 0.0f);
card.TurnDown();
//FixPositions();
card._Coord = CardCoord.ENEMY_HAND;
for(int i = 0; i < hand.Count; i++)
{
hand[i].MoveAndRotate(GetPositionOf(i));
}
//card.MoveAndRotate(GetPositionOf(hand.Count - 1));
}
示例2: Flipdown
public void Flipdown(Card c)
{
c.TurnDown();
Game.SendPacket(GameAction.FLIPDOWN, Game.field.GetDamageIndexOf(c));
}
示例3: FromFieldToDeck
/**
* Move a card on the field to the deck
*/
public void FromFieldToDeck(Card c, bool bBottom = false)
{
Game.SendPacket(GameAction.RETURN_FROM_FIELD_TO_DECK, c.pos);
Game.field.RemoveFrom(c.pos);
c.SetRotation(0,180,0);
c.TurnDown();
Game.playerDeck.ReturnToDeck(c, bBottom);
}
示例4: FromDropToDeckUpdate
public void FromDropToDeckUpdate(Void0ParamsDelegate DD_fnc)
{
if(DD_Active)
{
if(DD_Card == null || !DD_Card.AnimationOngoing())
{
if(DD_List.Count > 0)
{
DD_Card = Game.field.GetDropByID(DD_List[0]);
DD_Card.TurnDown();
DD_List.RemoveAt(0);
Game.field.RemoveFromDropzone(DD_Card);
if(DD_toBottom)
{
Game.playerDeck.AddToBottom(DD_Card);
}
else
{
Game.playerDeck.AddCard(DD_Card);
}
Game.SendPacket(GameAction.FROM_DROP_TO_DECK, DD_Card.cardID);
}
else
{
DD_Active = false;
Game.field.FixDropZonePosition();
DD_fnc();
}
}
}
}
示例5: FromDeckToDamage
public void FromDeckToDamage(Card c, bool bFaceup = false)
{
Game.playerDeck.RemoveFromDeck(c);
Game.field.AddToDamageZone(c);
if(bFaceup)
{
c.TurnUp();
Game.SendPacket(GameAction.FROM_DECK_TO_DAMAGE_FACEUP, c.cardID);
}
else
{
c.TurnDown();
Game.SendPacket(GameAction.FROM_DECK_TO_DAMAGE, c.cardID);
}
}
示例6: FromDeckToDamage
void FromDeckToDamage(Card c)
{
Game.playerDeck.RemoveFromDeck(c);
Game.field.AddToDamageZone(c);
c.TurnDown();
Game.SendPacket(GameAction.FROM_DECK_TO_DAMAGE, c.cardID);
}