private void clearRoleAndFood()
 {
     buttonMain.gameObject.SetActive(true);
     mainRole.cleanData();
     buttonFood.gameObject.SetActive(true);
     food.cleanAll();
     tempEvoCard.gameObject.SetActive(false);
 }
Exemplo n.º 2
0
    public void reloadAfterLearning()
    {
        //更新学习卡
        mainRole.card = StorageManagerment.Instance.getRole(mainRole.card.uid);

        food.cleanData();
//		cleanSortCondition ();
        Initialize(true);
    }
    public void updateCtrl()
    {
        isMore = "";
        evoCheckBox.gameObject.SetActive(true);
        changeDescLabel.text = LanguageConfigManager.Instance.getLanguage("inherit_05");
        if (GuideManager.Instance.isMoreThanStep(GuideGlobal.NEWFUNSHOW30))
        {
            changeDescLabel.text += LanguageConfigManager.Instance.getLanguage("inherit_11");
        }
        evoCheckBox.value   = false;
        equipCheckBox.value = false;
        inheritAddonExp     = new int[5];
        needPropNum         = 0;
        if (propTemp == null)
        {
            propTemp = new Prop(PROPSID, 0);
            needProp.fatherWindow = win;
            needProp.init(propTemp);
        }
        getPropNumStr(needPropNum, 0);

        if (!IntensifyCardManager.Instance.isHaveMainCard())
        {
            buttonOld.gameObject.SetActive(false);
            oldRole.updateShower(IntensifyCardManager.Instance.getMainCard());
            oldCard = IntensifyCardManager.Instance.getMainCard().Clone() as Card;
        }
        else
        {
            buttonOld.gameObject.SetActive(true);
            oldRole.cleanData();
            IntensifyCardManager.Instance.clearFood();
            buttonNew.gameObject.SetActive(true);
            newRole.cleanAll();
        }

        if (!IntensifyCardManager.Instance.isHaveFood())
        {
            buttonNew.gameObject.SetActive(false);
            newRole.updateShower(IntensifyCardManager.Instance.getFoodCard() [0]);
        }
        else
        {
            buttonNew.gameObject.SetActive(true);
            newRole.cleanAll();
        }
        setEvoCheckBoxState();
        setAddAttr();
        getPropNum();
    }
Exemplo n.º 4
0
 //清理主祭台
 public void cleanMainShower()
 {
     mainShower.cleanData();
 }
Exemplo n.º 5
0
    };                                                                                    //精灵卡sid

    public void hideAll()
    {
        mainRole.cleanData();
        food.cleanAll();
    }