/// <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;
            }
        }
    }
    /// <summary>
    /// 更新附加精灵数量
    /// </summary>
    private void updateCount(ButtonSpriteAdd bsa)
    {
        int useCount = IntensifyCardManager.Instance.getFoodCardNum(bsa.spriteSid);

        bsa.setCount(bsa.spriteList.Count - useCount);
        bsa.updateCount();
    }
    public void buttonbaseEvent(GameObject gameObj)
    {
        int count = 1;

        ButtonSpriteAdd bsa = gameObj.GetComponent <ButtonSpriteAdd> ();

        if (bsa.getCount() < count)
        {
            showMessageLineWindow();
            return;
        }
        playAimi(bsa, () => {
            updateCount(bsa);
        });
        MaskWindow.UnlockUI();
    }