Skip to content

Commit

Permalink
✨ feat(towing): Try connect on instance start
Browse files Browse the repository at this point in the history
  • Loading branch information
esnya committed Jun 25, 2022
1 parent b472fcc commit 349ee78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ private void Start()
keywords = keyword.Split(',');

ConnectedAnchor = null;

SendCustomEventDelayedSeconds(nameof(_LateStart), 10.0f);
}

public void _LateStart()
{
if (Networking.IsMaster)
{
SendCustomNetworkEvent(NetworkEventTarget.All , nameof(TryConnect));
}
}

private void FixedUpdate()
Expand Down

Large diffs are not rendered by default.

0 comments on commit 349ee78

Please sign in to comment.