The goal of this sample is to demonstrate a simple integration with Falken.
You must be running the service, as described in the service instructions before building and running the Unity demos.
- Use Unity 2018.4.17f1 or above.
- If you're using an older version of Unity make sure the project is configured to use .NET 4.x or above.
- For the Unity demo to properly connect to the service, copy the
falken_config.json
generated from launching the service to theenvironments/demos/Assets/StreamingAssets
directory.- Windows:
copy service\tools\falken_config.json environments\unity\demos\Assets\StreamingAssets\falken_config.json
- macOS:
cp service/tools/falken_config.json environments/unity/demos/Assets/ StreamingAssets/falken_config.json
- Linux:
cp service/tools/falken_config.json environments/unity/demos/Assets/ StreamingAssets/falken_config.json
- Add the environments/demos/ directory as a project in Unity Hub.
- Open the Unity project.
- Go to the Menu, Assets --> Import Package --> Custom Package and import the falken.unitypackage downloaded from the Releases page or built.
- Open
environments/unity/demos/Assets/HelloFalken/Scenes/HelloFalken.unity
. - Press the Play button
The goal of this game is to steer the blue ship into the green goal using arrow or WASD keys.
To play the game with obstacles, you can load the
HelloFalkenWithObstacles.unity
scene.
Play the game for a few rounds, and press the
t
key for Falken to take over.
If Falken is running into trouble playing the game, you can simply take over,
play correctly, then press the t
key again for Falken to take over.