Skip to content

Update 2-setting-up-the-game.md #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion articles/getting-started-guide/2-setting-up-the-game.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
There are a few methods we can use to start the game:

```cs
// manually initialize Netick (also done automatically when `Network.StartAsHost`/`Network.StartAsClient`/`Network.StartAsServer` is called)
Netick.Unity.Network.Init();

// start the game as a server with a player
Netick.Unity.Network.StartAsHost(...);

Expand Down Expand Up @@ -125,4 +128,4 @@ public class GameplayManager : NetworkEventsListener

Let's go ahead and enter play mode. You can see our player spawning by clicking on "Start Host".

<figure><img src="../../images/getting-started/102-player-spawning.gif" alt=""><figcaption></figcaption></figure>
<figure><img src="../../images/getting-started/102-player-spawning.gif" alt=""><figcaption></figcaption></figure>