private void UpdateManorGainInfo() { CSEmptyCropMature csemptycropmature = new CSEmptyCropMature(); ProtocalManager.Instance().SendCSEmptyCropMature(csemptycropmature, succ => { ManorRedDotTool.isManorHaveGain = succ.Mature; RedDotManager.UpdateRedDot(RedDotManager.RedDotKey.Manor); }, error => { }); }
public void SendCSEmptyCropMature(CSEmptyCropMature csemptycropmature, Action <SCCropMature> ResponseSCCropMatureCallBack, Action <ErrorInfo> errorCallBack, bool isShowDefaultTip = true) { OpCodeType opCodeType = ListOPRelation.GetOpCodeTypeByRequest <CSEmptyCropMature> (); ProtoSendMethod.BusinessRequest <SCCropMature>(csemptycropmature, opCodeType, ResponseSCCropMatureCallBack, errorCallBack, isShowDefaultTip); }