public void Init() { CSkinInfo.InitHeroSkinDicData(); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Mall_SkinItem_Enable, new CUIEventManager.OnUIEventHandler(this.OnSkinItemEnable)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Mall_Skin_JobSelect, new CUIEventManager.OnUIEventHandler(this.OnSkinJobSelect)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Mall_Appear, new CUIEventManager.OnUIEventHandler(this.OnMallAppear)); Singleton <EventRouter> .instance.AddEventHandler <uint>("HeroAdd", new Action <uint>(this.OnNtyHeroInfoChange)); Singleton <EventRouter> .instance.AddEventHandler <uint, uint, uint>("HeroSkinAdd", new Action <uint, uint, uint>(this, (IntPtr)this.OnNtyHeroInfoChangeBySkinAdd)); Singleton <EventRouter> .instance.AddEventHandler(EventID.SERVER_SKIN_DATABIN_READY, new Action(this, (IntPtr)this.OnServerSkinDatabinReady)); }
public void Init() { CSkinInfo.InitHeroSkinDicData(); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Mall_SkinItem_Enable, new CUIEventManager.OnUIEventHandler(this.OnSkinItemEnable)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Mall_Skin_JobSelect, new CUIEventManager.OnUIEventHandler(this.OnSkinJobSelect)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Mall_Appear, new CUIEventManager.OnUIEventHandler(this.OnMallAppear)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Mall_Skin_Own_Flag_Change, new CUIEventManager.OnUIEventHandler(this.OnSkinOwnFlagChange)); Singleton <EventRouter> .get_instance().AddEventHandler <uint>("HeroAdd", new Action <uint>(this.OnNtyHeroInfoChange)); Singleton <EventRouter> .get_instance().AddEventHandler <uint, uint, uint>("HeroSkinAdd", new Action <uint, uint, uint>(this.OnNtyHeroInfoChangeBySkinAdd)); Singleton <EventRouter> .get_instance().AddEventHandler(EventID.Mall_Sort_Type_Changed, new Action(this.OnSortTypeChanged)); Singleton <EventRouter> .get_instance().AddEventHandler(EventID.SERVER_SKIN_DATABIN_READY, new Action(this.OnServerSkinDatabinReady)); this.m_notOwnFlag = (PlayerPrefs.GetInt("Mall_Skin_Own_Flag_Key", 0) != 0); }
private void OnServerSkinDatabinReady() { CSkinInfo.InitHeroSkinDicData(); }