Ejemplo n.º 1
0
    public static void OpenHeroTypeSelectForm()
    {
        CUIFormScript cUIFormScript = Singleton <CUIManager> .get_instance().OpenForm(CRoleRegisterSys.s_heroTypeSelectFormPath, false, true);

        if (cUIFormScript != null)
        {
            GameObject gameObject = Utility.FindChild(cUIFormScript.gameObject, "ToggleGroup/Toggle1");
            gameObject.GetComponent <CUIEventScript>().m_onClickEventParams.tagUInt = GameDataMgr.GetGlobeValue(286);
            gameObject = Utility.FindChild(cUIFormScript.gameObject, "ToggleGroup/Toggle2");
            gameObject.GetComponent <CUIEventScript>().m_onClickEventParams.tagUInt = GameDataMgr.GetGlobeValue(284);
            gameObject = Utility.FindChild(cUIFormScript.gameObject, "ToggleGroup/Toggle3");
            gameObject.GetComponent <CUIEventScript>().m_onClickEventParams.tagUInt = GameDataMgr.GetGlobeValue(285);
            CRoleRegisterView.SetHeroType(0u);
        }
    }
Ejemplo n.º 2
0
    public static void OpenHeroTypeSelectForm()
    {
        CUIFormScript cUIFormScript = Singleton <CUIManager> .instance.OpenForm(CRoleRegisterSys.s_heroTypeSelectFormPath, false, true);

        if (cUIFormScript != null)
        {
            GameObject gameObject = Utility.FindChild(cUIFormScript.gameObject, "ToggleGroup/Toggle1");
            gameObject.GetComponent <CUIEventScript>().m_onClickEventParams.tagUInt = GameDataMgr.GetGlobeValue(RES_GLOBAL_CONF_TYPE.RES_GLOBAL_CONF_TYPE_NEWBIE_RECOMMEND_HEROTYPE3);
            gameObject = Utility.FindChild(cUIFormScript.gameObject, "ToggleGroup/Toggle2");
            gameObject.GetComponent <CUIEventScript>().m_onClickEventParams.tagUInt = GameDataMgr.GetGlobeValue(RES_GLOBAL_CONF_TYPE.RES_GLOBAL_CONF_TYPE_NEWBIE_RECOMMEND_HEROTYPE1);
            gameObject = Utility.FindChild(cUIFormScript.gameObject, "ToggleGroup/Toggle3");
            gameObject.GetComponent <CUIEventScript>().m_onClickEventParams.tagUInt = GameDataMgr.GetGlobeValue(RES_GLOBAL_CONF_TYPE.RES_GLOBAL_CONF_TYPE_NEWBIE_RECOMMEND_HEROTYPE2);
            CRoleRegisterView.SetHeroType(0u);
        }
    }
Ejemplo n.º 3
0
 public void OnHeroTypeSelect(CUIEvent uiEvent)
 {
     CRoleRegisterView.SetHeroType(uiEvent.m_eventParams.tagUInt);
 }