Skip to content

Commit

Permalink
Merge pull request #65 from jesstelford/patch-1
Browse files Browse the repository at this point in the history
Enable syntax highlighting in docs
  • Loading branch information
mattak authored Jan 30, 2017
2 parents 3e11ad6 + 8329516 commit 6aa2169
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Import unitypackage from [latest releases](https://github.com/mattak/Unidux/rele

1) Create your Unidux singleton and place it to unity scene.

```cs
```csharp
public sealed partial class Unidux : SingletonMonoBehaviour<Unidux>
{
partial void AddReducers(Store<State> store);
Expand Down Expand Up @@ -64,7 +64,7 @@ public sealed partial class Unidux

2) Create state class to store application state.

```cs
```csharp
using Unidux;
public class State : StateBase<State>
{
Expand All @@ -74,7 +74,7 @@ public class State : StateBase<State>

3) Define action to change state. Define Reducer to move state.

```cs
```csharp
public static class Count
{
public enum ActionType
Expand Down Expand Up @@ -120,7 +120,7 @@ public static class Count

4) Create Renderer to display state and attach it to Text GameObject.

```cs
```csharp
[RequireComponent(typeof(Text))]
public class CountRenderer : MonoBehaviour
{
Expand All @@ -140,7 +140,7 @@ public class CountRenderer : MonoBehaviour

5) Create dispatcher to update count and attach it to GameObject.

```cs
```csharp
[RequireComponent(typeof(Button))]
public class CountDispatcher : MonoBehaviour
{
Expand Down

0 comments on commit 6aa2169

Please sign in to comment.