/// <summary> /// 发送请求到服务器 /// </summary> private void SendServer(bool isClose = false) { //是否已经请求过 / 请求数据长度小于等于0 if (_isAllLottery || _slectedCards.Count <= 0) { if (isClose) { CloseUI(); } return; } List <int> rewards = new List <int>(); for (int i = 0; i < _gridRewards.Count; i++) { if (_slectedCards.Contains(i)) { rewards.Add(_gridRewards[i].ID); } } ZillionaireToolManager.NotifyServerChooseOrLucky(LuckyTyep.LuckySeed, rewards, ServerCallback); }
/// <summary> /// 发送请求到服务器 /// </summary> private void SendRequestServer() { _lotteryItem = null; ZillionaireToolManager.NotifyServerChooseOrLucky(LuckyTyep.LuckyProp, null, ServerCallback); }