Ejemplo n.º 1
0
    void OnClick()
    {
//        if(TeamModifyUI.mInstance.gameObject.activeInHierarchy == false)
//             MonsterInfoUI.OpenUI (m_data,ShowFatePanelController.FateInPanelType.isInRecruitPanel, false);
//        else
        MonsterInfoUI.OpenUI(m_data, ShowFatePanelController.FateInPanelType.isInTeamModifyPanel, false);
    }
Ejemplo n.º 2
0
 void DestroyPanel()
 {
     if (TeamUI.mInstance != null)
     {
         TeamUI.mInstance.RefreshMonster(m_monster);
     }
     else
     {
         MonsterInfoUI.OpenUI(m_monster, ShowFatePanelController.FateInPanelType.isInMonsterInfoPanel);
     }
     Destroy(gameObject);
 }
Ejemplo n.º 3
0
 void OnLookTheMonsterInfo()
 {
     if (bestMonster != null)
     {
         Monster tMonster = new Monster();
         tMonster.RTData = new RuntimeMonster();
         tMonster.InitConfig();
         tMonster.RTData.curLevel  = 1;
         tMonster.RTData.curExp    = 1;
         tMonster.config           = Core.Data.monManager.getMonsterByNum(bestMonster.ID);
         tMonster.config.ID        = bestMonster.ID;
         tMonster.RTData.Attribute = MonsterAttribute.FIRE;
         tMonster.pid        = bestMonster.ID;
         tMonster.num        = bestMonster.ID;
         tMonster.config.atk = bestMonster.atk;
         tMonster.config.def = bestMonster.def;
         tMonster.BTData     = new BattleMonster((int)tMonster.config.atk, tMonster.enhanceAttack, (int)tMonster.config.def, tMonster.enhanceDefend);
         MonsterInfoUI.OpenUI(tMonster, ShowFatePanelController.FateInPanelType.isInTeamModifyPanel, false);
     }
 }
Ejemplo n.º 4
0
    //详情
    void OnClickDetial()
    {
        switch (m_selBagItem.curItemType)
        {
        case RUIType.EMItemType.Equipment:
            Equipment equip = m_selBagItem.curData as Equipment;
            JCEquipmentDesInfoUI.OpenUI(equip);
            break;

        case RUIType.EMItemType.Charator:
            Monster monster = m_selBagItem.curData as Monster;
            MonsterInfoUI.OpenUI(monster, ShowFatePanelController.FateInPanelType.isInMonsterInfoPanel);
            break;

        case RUIType.EMItemType.AtkFrag:
        case RUIType.EMItemType.DefFrag:
        case RUIType.EMItemType.MonFrag:
            OpenFragInfoUI();
            break;
        }
    }