Skip to content

Instantly share code, notes, and snippets.

@alexson
Created January 13, 2022 09:07
Show Gist options
  • Save alexson/d3296d8f629540316064a059a3c9cb36 to your computer and use it in GitHub Desktop.
Save alexson/d3296d8f629540316064a059a3c9cb36 to your computer and use it in GitHub Desktop.
public void HostStartGame()
{
//Send Game Start to peer
//Hide msg
ir.hostStartGameButton.SetActive(false);
ir.hostStartGameMsg.SetActive(false);
//Send game state
messagingManager.BroadcastString((uint)MessageType.GameState, "Start", TransportType.ReliableUnordered);
//Game start
GameStart();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment