예제 #1
0
    void OnGetUserInfoComplated(string userInfo)
    {
        string systemName = Application.platform.ToString();

        Debug.Log("接到sdk返回的数据:" + userInfo);
        GameServiceManager.Service <EAccount>("AccountService/PlatformLogin", this, "OnLoginServerBack", userInfo + "|" + systemName);
    }
예제 #2
0
파일: Page_Shop.cs 프로젝트: liuhaili/Chess
 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);
 }
예제 #3
0
    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();
    }
예제 #4
0
 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);
 }
예제 #5
0
파일: Page_Shop.cs 프로젝트: liuhaili/Chess
 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);
     }
 }
예제 #6
0
 private void BindData()
 {
     GameServiceManager.Service <List <EFriends> >("AccountService/ListFriends", this, "BindDataBack", Session.UserID);
 }
예제 #7
0
 void OnBtnEnterClicked(GameObject sender)
 {
     GameServiceManager.Service <int>("AccountService/SetInviteCode", this, "SetInviteCodeCallBack", Session.UserID, int.Parse(IptRoomCode.text));
     SoundManager.Instance.PlaySound("音效/按钮");
 }
예제 #8
0
파일: Page_Main.cs 프로젝트: liuhaili/Chess
 public void UpdateAccountData()
 {
     GameServiceManager.Service <EAccount>("AccountService/Get", this, "GetCallBack", Session.UserID);
 }
예제 #9
0
 void OnBtnDayClicked(GameObject g)
 {
     GameServiceManager.Service <EAccount>("AccountService/Day5Sign", this, "OnSignServerBack", GlobalVariable.LoginUser.ID);
 }
예제 #10
0
 private void BindData()
 {
     GameServiceManager.Service <List <EBattleRecord> >("BattleService/BattleRecord", this, "BindDataBack", Session.UserID);
 }