Exemplo n.º 1
0
        public void CancelPlayerMatch(CancelPlayerMatchPara para, Action <ResponseEvent> callback)
        {
            void Eve(ResponseEvent e)
            {
                if (e.Code == ErrCode.EcOk)
                {
                    BroadcastOnce.RemoveCallbacksByTag(BroadcastOnce.PlayerComplex);
                    BroadcastOnce.RemoveCallbacksByTag(BroadcastOnce.PlayerSimple);
                }

                callback?.Invoke(e);
            }

            Sdk.CancelMatch(para, Eve);
        }