Skip to content

Commit

Permalink
Merge pull request #6 from chippermonky/patch-1
Browse files Browse the repository at this point in the history
Fixed image tags being displayed as code quotes. Include "using System" ...
  • Loading branch information
greggman committed Dec 7, 2014
2 parents 6ec465d + 66e8b46 commit 74b7708
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/unitydocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ C# minimal code

using UnityEngine;
using HappyFunTimes;
using System;

class MyPlayer : MonoBehaviour
{
Expand Down Expand Up @@ -87,13 +88,13 @@ Now make a new GameObject and add a Script Component, HappyFunTimes->PlayerSpawn
In the properties for the PlayerSpawner set the `prefab to spawn for player` to the
prefab you just created. Leave `gameId` blank!

<img src="../images/unity/player-spawner-properties.png" width="279" height="94" />
<img src="../images/unity/player-spawner-properties.png" width="279" height="94" />

If happyfuntimes is running, and you followed all the other instructions about editing
`package.json` and running `hft add` etc, then if you run the game you should see the
message

<img src="../images/unity/socket-opened.png" width="238" height="65" />
<img src="../images/unity/socket-opened.png" width="238" height="65" />

If you open a browser window and go to `http://localhost:18679` you should see your
prefab get spawned. Open more browser windows/tabs you'll see more get spawned. Close them
Expand Down Expand Up @@ -229,7 +230,7 @@ so.
* Run in Background (checked)
* Display Resolution Dialog (disabled)

<img src="../images/unity/player-settings.png" width="274" height="423" />
<img src="../images/unity/player-settings.png" width="274" height="423" />

5. Save the Scene and **Exit Unity**

Expand Down

0 comments on commit 74b7708

Please sign in to comment.