Skip to content

Commit e76cf8a

Browse files
committed
📝 Updated Readmes
1 parent 2ff9d67 commit e76cf8a

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

Assets/AppServices/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For game developers looking to use Azure App Services (previously Mobile Service
1111

1212
## Unity 5 leaderboard demo
1313
[App Services Demo project](https://github.com/Unity3dAzure/AppServicesDemo) will run inside UnityEditor on Mac or Windows. (The demo project has got everything bundled in and does not require any additional assets to work.)
14-
Read developer guide on [using Azure App Services to create Unity highscores leaderboard](http://www.deadlyfingers.net/azure/azure-app-services-for-unity3d/) for detailed instructions.
14+
For detailed instructions read my developer blog on how to [use Azure App Services with Unity project](http://www.deadlyfingers.net/azure/azure-app-services-for-unity3d/).
1515

1616
## Supported Features
1717
### MobileServiceClient

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,23 @@ Sample highscore leaderboard project demoing Azure App Services (previously Mobi
1010
* Query for username (user's scores)
1111

1212
## Developer guide
13-
Read developer guide on [using Azure App Services to create Unity highscores leaderboard](http://www.deadlyfingers.net/azure/azure-app-services-for-unity3d/) for detailed instructions.
13+
For detailed instructions read blog on how to [setup Azure App Services to create Unity highscores leaderboard](http://www.deadlyfingers.net/azure/azure-app-services-for-unity3d/).
1414

1515
## Setup Azure App Services for Unity
1616
1. Create an [Azure Mobile App](https://portal.azure.com/)
1717
* Create 'Highscores' table for storing app data using **Easy Tables**.
1818
2. In Unity open scene "Scenes/HighscoresDemo.unity"
19-
3. Select the *AppServicesController gameobject* in the Unity Hierarchy window and paste your **Azure App Service URL** into the Editor Inspector field.
19+
3. Select the *AppServicesController gameobject* in the Unity Hierarchy window and paste your **Azure App Service URL** into the Editor Inspector field.
2020
![alt Unity Editor Mobile Services config](https://cloud.githubusercontent.com/assets/1880480/18139855/0e5fe626-6fab-11e6-8de6-484e3b909cc8.png)
21-
4. If you wish to save score using Facebook identity:
22-
* [Create Facebook app](https://developers.facebook.com/apps/)
23-
* Fill in the Azure App Services Authentication settings for Facebook. (Facebook App Id & App Secret required)
24-
* Paste [Facebook access user token](https://developers.facebook.com/tools/accesstoken/) into Unity Editor Inspector field
25-
* Modify 'Highscores' table 'Insert' node script (using snippet below) to save `userId`
26-
5. Create optional custom APIs using **Easy APIs**. (Example snippets below)
27-
* Create a 'hello' api to say hello!
28-
* Create a 'GenerateScores' api to generate 10 random scores.
2921

30-
### Easy Table scripts
31-
#### 'tables/Highscores.js' **Insert** script
22+
## Setup Azure App Services with Authentication
23+
If you wish to save score using Facebook identity:
24+
1. [Create Facebook app](https://developers.facebook.com/apps/)
25+
2. Fill in the [Azure App Services](https://portal.azure.com/) Authentication settings with Facebook App Id & App Secret.
26+
3. Paste [Facebook access user token](https://developers.facebook.com/tools/accesstoken/) into Unity access token field to enable Login button.
27+
4. Modify 'Highscores' table 'Insert' node script (using snippet below) to save `user.id`
28+
29+
#### **Easy Table Insert** script (*tables/Highscores.js*)
3230
```node
3331
var table = module.exports = require('azure-mobile-apps').table();
3432
table.insert(function (context) {
@@ -39,8 +37,12 @@ table.insert(function (context) {
3937
});
4038
```
4139

42-
### Easy API scripts
43-
#### 'api/hello.js' script
40+
## Setup Azure App Services custom APIs with **Easy APIs**
41+
With [Azure App Services](https://portal.azure.com/) you can create custom APIs using **Easy APIs**.
42+
1. Create a 'hello' api to say hello! (Example Easy API message script below)
43+
2. Create a 'GenerateScores' api to generate 10 random scores. (Example Easy API query script below)
44+
45+
#### Easy API 'hello' script (*api/hello.js*)
4446
```node
4547
module.exports = {
4648
"get": function (req, res, next) {
@@ -49,7 +51,7 @@ module.exports = {
4951
}
5052
```
5153

52-
#### 'api/GenerateScores.js' script
54+
#### Easy API 'GenerateScores' script (*api/GenerateScores.js*)
5355
```node
5456
var util = require('util');
5557
module.exports = {

0 commit comments

Comments
 (0)