예제 #1
0
 /// <summary>
 /// 更新数据
 /// </summary>
 public void updateData <T>(T mg, string objectId, string tabName) where T : BmobTable
 {
     Bmob.Update(tabName, objectId, mg, (resp, exception) =>
     {
         if (exception != null)
         {
             Debug.Log("保存失败, 失败原因为: " + exception.Message);
             return;
         }
         Debug.Log("保存成功, @" + resp.updatedAt);
     });
 }
예제 #2
0
    void UpdateGame()
    {
        BmobGameObject game = new BmobGameObject();

        game.playerName = "pn_123";
        Bmob.Update(TABLENAME, "68ee8131ca", game, (resp, exception) =>
        {
            if (exception != null)
            {
                print("保存失败, 失败原因为: " + exception.Message);
                return;
            }

            print("保存成功, @" + resp.updatedAt);
        });
    }
예제 #3
0
    void UpdateData()
    {
        BmobGameObject game = new BmobGameObject();

        game.userId   = 11;
        game.userName = "******";

        Bmob.Update(TABLENAME, "838951fe45", game, (resp, exception) => {
            if (exception != null)
            {
                print("数据更新失败:" + exception);
                return;
            }
            print("数据更新成功");
        }
                    );
    }