Skip to content

Commit c89c7c2

Browse files
committed
Updated readme
1 parent 16a7458 commit c89c7c2

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

Assets/MobileServices/README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Azure Mobile Services for Unity3d
2-
For game developers looking to use Azure Mobile Services[^1] in their Unity3D project.
2+
For game developers looking to use Azure Mobile Services in their Unity3D project.
33

4-
5-
The REST service implements [UnityRestClient](https://github.com/ProjectStratus/UnityRestClient) which uses the JsonFx plugin. Works in UnityEditor, iOS and Android.
4+
The REST service implements [UnityRestClient](https://github.com/ProjectStratus/UnityRestClient) which uses the JsonFx plugin.
5+
Runs in UnityEditor and works on iOS, Android and Windows.
66

77
## How to add MobileServices into Unity3d project
88
1. [Download UnityRestClient](https://github.com/ProjectStratus/UnityRestClient/archive/master.zip)
@@ -43,33 +43,33 @@ Lookup | Get an item’s data using id property.
4343

4444

4545
## Sample usage
46-
```
46+
47+
```csharp
4748
using UnityEngine;
4849
using System;
4950
using System.Net;
5051
using System.Collections.Generic;
5152
using RestSharp;
5253
using Pathfinding.Serialization.JsonFx;
5354
using Unity3dAzure.MobileServices;
54-
5555
```
5656

57-
```
57+
```csharp
5858
private MobileServiceClient _client;
5959
private MobileServiceTable<TodoItem> _table;
6060
```
6161

62-
```
62+
```csharp
6363
void Start () {
6464
_client = new MobileServiceClient(appUrl, appKey); // <- add your app connection strings here.
6565
_table = _client.GetTable<TodoItem>("TodoItem");
6666
}
6767
```
68-
```
68+
69+
```csharp
6970
private void ReadItems() {
7071
_table.Read<TodoItem>(OnReadItemsCompleted);
7172
}
72-
7373
private void OnReadItemsCompleted(IRestResponse<List<TodoItem>> response) {
7474
if ( response.StatusCode == HttpStatusCode.OK) {
7575
Debug.Log("OnReadItemsCompleted data: " + response.Content);
@@ -82,8 +82,4 @@ private void OnReadItemsCompleted(IRestResponse<List<TodoItem>> response) {
8282
}
8383
```
8484

85-
86-
87-
Questions or tweet #GameDev [@deadlyfingers](https://twitter.com/deadlyfingers)
88-
89-
[^1]: Azure Mobile Services is also known as Mobile Apps an Azure App Service.
85+
Questions or tweet #Azure #GameDev [@deadlyfingers](https://twitter.com/deadlyfingers)

0 commit comments

Comments
 (0)