public void OnMatchClick() { if (isMatching && mt_timer > 3) { DataSync.CancelMatch(); EventHandler.GetEventHandler().AddOnceListener(ProtoName.CancelMatch, OnCancelMatchBack); } else if (!isMatching) { EventHandler.GetEventHandler().AddOnceListener(ProtoName.Match, OnMatchBack); DataSync.Match(); } }