/// <summary> /// Send the buy message from client side to server side. /// </summary> private void SendBuyMessage() { var msg = new CSLottery(); msg.ActivityId = isHeroChoose ? scLotteryList.ListLotteryHeroInfo[0].ActivityId : scLotteryList.ListLotteryItemInfo[0].ActivityId; msg.LotteryType = isHeroChoose ? (sbyte)1 : (sbyte)2; msg.LotteryMode = (sbyte)lotteryMode; NetManager.SendMessage(msg); }
private void OnChoose(GameObject go) { var csmsg = new CSLottery { ActivityId = lotteryCached.ActivityId, LotteryMode = lotteryCached.LotteryMode, LotteryType = lotteryCached.LotteryType }; NetManager.SendMessage(csmsg); NGUITools.Destroy(detailClone); }