/// <summary> /// 创建实例 /// </summary> public static FuncItemRemoveRedPointRequest create(int funcID, int index) { FuncItemRemoveRedPointRequest re = (FuncItemRemoveRedPointRequest)BytesControl.createRequest(dataID); re.funcID = funcID; re.index = index; return(re); }
protected override void onRedPointRemoved(int index) { base.onRedPointRemoved(index); //发送服务器 me.send(FuncItemRemoveRedPointRequest.create(_funcID, index)); //更新单格 me.dispatch(GameEventType.FuncItemContainerRefreshGrid, new int[] { _funcID, index }); if (_funcID == FunctionType.MainBag) { me.dispatch(GameEventType.MainBagRefreshGrid, index); } }