private void ResultOpponentSendReady(object sender, ResponseEventArgs e) { SendOpponentIsReadyResponse response = e.Response as SendOpponentIsReadyResponse; if (response != null) { if (response.IsSuccess) { ClientManager.Instance.Callback.RemoveHandler <SendOpponentIsReadyResponse>(); } } }
public void SendOpponentIsReady(SendOpponentIsReadyResponse response) { syncContext.Post(new SendOrPostCallback(OnBroadcast <SendOpponentIsReadyResponse>), response); }