void OnGetUserInfoComplated(string userInfo) { string systemName = Application.platform.ToString(); Debug.Log("接到sdk返回的数据:" + userInfo); GameServiceManager.Service <EAccount>("AccountService/PlatformLogin", this, "OnLoginServerBack", userInfo + "|" + systemName); }
void Start() { EventListener.Get(BtnGold.gameObject).onClick = ShopGoldEvent; EventListener.Get(BtnDem.gameObject).onClick = ShopDemEvent; EventListener.Get(BtnVIP.gameObject).onClick = ShopVIPEvent; EventListener.Get(BtnBag.gameObject).onClick = ShopBagEvent; GameServiceManager.Service <List <EStore> >("StoreService/AllProps", this, "AllPropsCallBack", Session.UserID); }
void OnRecordPlayClicked(GameObject sender) { int id = System.Convert.ToInt32(sender.transform.parent.gameObject.name.Split('_')[1]); GameServiceManager.Service <EBattleRecord>("BattleService/GetBattleRecord", this, "GetBattleRecordCallBack", id); //EBattleRecord record = RecordList.FirstOrDefault(); SoundManager.Instance.PlaySound("音效/按钮"); App.Instance.DataLoading.Show(); }
void OnBtnSureClicked(GameObject sender) { if (string.IsNullOrEmpty(IptFriendID.text)) { App.Instance.HintBox.Show("请填写好友ID"); return; } SoundManager.Instance.PlaySound("音效/按钮"); GameServiceManager.Service <int>("AccountService/AddFriends", this, "AddFriendsBack", Session.UserID, IptFriendID.text); }
void ShopGoodsEvent(GameObject g) { SoundManager.Instance.PlaySound("音效/按钮"); string[] nn = g.name.Split('_'); if (GlobalVariable.LoginUser.Diamond < System.Convert.ToInt32(nn[2])) { App.Instance.ShowHitbox("钻石不足,请充值!"); } else { App.Instance.DialogBox.Show("操作提示", "", "确定购买吗?", 250, 140, c => { GameServiceManager.Service <EAccount>("StoreService/DeliverGoods", this, "DeliverGoodsCallBack", Session.UserID, nn[1]); }, null); } }
private void BindData() { GameServiceManager.Service <List <EFriends> >("AccountService/ListFriends", this, "BindDataBack", Session.UserID); }
void OnBtnEnterClicked(GameObject sender) { GameServiceManager.Service <int>("AccountService/SetInviteCode", this, "SetInviteCodeCallBack", Session.UserID, int.Parse(IptRoomCode.text)); SoundManager.Instance.PlaySound("音效/按钮"); }
public void UpdateAccountData() { GameServiceManager.Service <EAccount>("AccountService/Get", this, "GetCallBack", Session.UserID); }
void OnBtnDayClicked(GameObject g) { GameServiceManager.Service <EAccount>("AccountService/Day5Sign", this, "OnSignServerBack", GlobalVariable.LoginUser.ID); }
private void BindData() { GameServiceManager.Service <List <EBattleRecord> >("BattleService/BattleRecord", this, "BindDataBack", Session.UserID); }