当前位置: 首页>>代码示例>>C#>>正文


C# Card.BindAnim方法代码示例

本文整理汇总了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();
                }
            }
        }
    }
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:37,代码来源:UnitObject.cs

示例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;
 }
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:8,代码来源:UnitObject.cs

示例3: EnemyBindHand

 public void EnemyBindHand(Card c)
 {
     EnemyBindCard = c;
     EnemyBindCard.BindAnim();
 }
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:5,代码来源:Gameplay.cs

示例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);
 }
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:7,代码来源:Gameplay.cs

示例5: BindHand

 public void BindHand(Card c)
 {
     BindCard = c;
     BindCard.BindAnim();
 }
开发者ID:Javierudec,项目名称:VGOnline_Scripts,代码行数:5,代码来源:Gameplay.cs


注:本文中的Card.BindAnim方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。