protected void OnMushroonGameEnd(HitMouseSettleRes msg) { MushroomHitEndUI mushroomHitEndUI = UIManagerControl.Instance.OpenUI("MushroomHitEndUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as MushroomHitEndUI; mushroomHitEndUI.RefreshUI(this.m_MushroomKillList, this.score, msg.dropItem, delegate { this.Show(false); UIStackManager.Instance.PopUIPrevious(base.uiType); }); mushroomHitEndUI.PlayAnimation(); }
public void OnHitMouseSettleRes(short state, HitMouseSettleRes msg = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); EventDispatcher.Broadcast(EventNames.MushroomHitError); return; } if (msg == null) { EventDispatcher.Broadcast(EventNames.MushroomHitError); return; } EventDispatcher.Broadcast <HitMouseSettleRes>(EventNames.MushroomHitResult, msg); }