/// <summary>
    /// 选择精灵动画
    /// </summary>
    private void playAimi(ButtonSpriteAdd bsa, CallBack callback)
    {
        ArrayList storgeSpriteList;

        storgeSpriteList = bsa.spriteList;
        Card card;

        for (int i = 0; i < storgeSpriteList.Count; i++)
        {
            card = storgeSpriteList [i] as Card;
            if (sacrificeRotCtrl.isOneOfTheCaster(card))
            {
                continue;
            }
            SacrificeShowerCtrl ctrl = sacrificeRotCtrl.selectOneEmptyCastShower();

            if (ctrl == null)
            {
                break;
            }
            if (!sacrificeRotCtrl.isCasterFull())
            {
                ctrl.updateShower(card);
                IntensifyCardManager.Instance.setFoodCard(card);
                if (callback != null)
                {
                    callback();
                }
                win.updateInfo();
                break;
            }
        }
    }
예제 #2
0
    public void OneKeyChoose()
    {
        IntensifyCardManager.Instance.clearFood();
        IntensifyCardManager.Instance.clearFoodCard();
        win.sacrificeContent.sacrificeRotCtrl.cleanCastShower();
        List <Card> list = IntensifyCardManager.Instance.getOneKeySacrifice();

        if (list == null)
        {
            return;
        }

        for (int i = 0; i < list.Count; i++)
        {
            if (win.sacrificeContent.sacrificeRotCtrl.isOneOfTheCaster(list [i]))
            {
                continue;
            }
            //没空巢就断掉
            SacrificeShowerCtrl ctrl = win.sacrificeContent.sacrificeRotCtrl.selectOneEmptyCastShower();
            if (ctrl == null)
            {
                break;
            }
            win.sacrificeContent.sacrificeRotCtrl.selectOneEmptyCastShower().updateShower(list [i]);
            IntensifyCardManager.Instance.setFoodCard(list [i]);
        }
        list = IntensifyCardManager.Instance.getFoodCard();
        if (list == null || list.Count <= 0)
        {
            UiManager.Instance.createMessageLintWindow(LanguageConfigManager.Instance.getLanguage("Intensify5"));
        }
        win.updateInfo();
    }