| | |
| | | OperationTimeHepler.Instance.operationEndEvent -= OperationEndEvent;
|
| | | OperationTimeHepler.Instance.operationTimeUpdateEvent -= OperationTimeEvent;
|
| | | OperationTimeHepler.Instance.operationServerCloseEvent -= OperationServerCloseEvent;
|
| | | NewBieCenter.Instance.guideCompletedEvent -= GuideCompletedEvent;
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | |
| | | OperationTimeHepler.Instance.operationEndEvent += OperationEndEvent;
|
| | | OperationTimeHepler.Instance.operationTimeUpdateEvent += OperationTimeEvent;
|
| | | OperationTimeHepler.Instance.operationServerCloseEvent += OperationServerCloseEvent;
|
| | | NewBieCenter.Instance.guideCompletedEvent += GuideCompletedEvent;
|
| | | GlobalTimeEvent.Instance.minuteEvent += UpdateMinute;
|
| | | SetFlashRushToBuyNotify();
|
| | | if (!WindowCenter.Instance.IsOpen<OpenServerActivityNotifyWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<OpenServerActivityNotifyWin>();
|
| | | }
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | private void GuideCompletedEvent(int id)
|
| | | {
|
| | | SetFlashRushToBuyNotify();
|
| | | }
|
| | |
|
| | | #region 限时抢购
|
| | | public event Action UpdateFlashRushToBuyEvent;
|
| | | FlashRushToBuyModel rushToBuyModel { get { return ModelCenter.Instance.GetModel<FlashRushToBuyModel>(); } }
|
| | | public List<OperationFlashRushToBuy.FlashSaleShop> flashSaleShops = new List<OperationFlashRushToBuy.FlashSaleShop>();
|
| | | public void SetFlashRushToBuyNotify()
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding) return;
|
| | |
|
| | | OperationFlashRushToBuy.FlashSaleShop saleShop = null;
|
| | | bool isPush = rushToBuyModel.CheckIsPush(out saleShop);
|
| | | if(isPush && !flashSaleShops.Contains(saleShop))
|