//更换英雄按钮回调 public void onChangeHeroBtnClick() { onClose(); GameObject go = UI_HomeControler.Inst.AddUI(UI_SelectHeroMgr.UI_ResPath); UI_SelectHeroMgr uiSelectHeroMgr = go.GetComponent <UI_SelectHeroMgr>(); uiSelectHeroMgr.SetSelectHeoData(m_Card, m_SelectPos, m_SelectNo); }
//点击当前模型 private void OnClickHero() { UI_FormMgr.Inst.onClose(); if (objhero != null) { GameObject go = UI_HomeControler.Inst.AddUI(UI_RepartoMgr.UI_ResPath); UI_RepartoMgr uiRepartoMgr = go.GetComponent <UI_RepartoMgr>(); uiRepartoMgr.SetSelectHeoData(objhero, ClickType, FormationNum); } else { GameObject go = UI_HomeControler.Inst.AddUI(UI_SelectHeroMgr.UI_ResPath); UI_SelectHeroMgr uiSelectHeroMgr = go.GetComponent <UI_SelectHeroMgr>(); uiSelectHeroMgr.SetSelectHeoData(null, ClickType, FormationNum); } }