diff --git a/README.md b/README.md index 2030888b..a0dd47ba 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,12 @@ export class App extends React.Component { constructor () { this.spawnEnemies = new UnityEvent ('SpawnBehaviour', 'SpawnEnemies') } + onClickSpawnEnemies (count) { + if (this.spawnEnemies.canEmit () === true) + this.spawnEnemies.emit (count) + } render () { - return
+ return
Click to Spawn 5 Enemies
} }