Beispiel #1
0
 public void SetCurShopPos(ShopPos pos, bool dispatch = true)
 {
     m_curShopPos = pos;
     Logger.LogDetail("当前商店的位置={0}", m_curShopPos.ToString());
     if (dispatch && m_allShops.ContainsKey(m_curShopPos))
     {
         DispatchModuleEvent(EventShopData, m_allShops[m_curShopPos]);
     }
 }
Beispiel #2
0
 protected override void OnGameDataReset()
 {
     base.OnGameDataReset();
     m_curShopPos   = ShopPos.None;
     curFashionType = FashionType.None;
     m_allShops.Clear();
     m_allPromo.Clear();
     m_FashionShop.Clear();
     m_changeFashion.Clear();
     m_receiveTime.Clear();
     curClickItem  = null;
     lastClickItem = null;
     m_curShopMsg  = null;
     changedCloth  = false;
     curItmes?.Clear();
     m_npcShop.Clear();
     lastShopMsg = null;
 }