Skip to content

Instantly share code, notes, and snippets.

@alexson
Last active January 13, 2022 09:57
Show Gist options
  • Save alexson/04a2363694e6ac041b0e3c9897719695 to your computer and use it in GitHub Desktop.
Save alexson/04a2363694e6ac041b0e3c9897719695 to your computer and use it in GitHub Desktop.
...
public void HostStart()
{
//Start AR Session
//Connect AR Network
//Debug.Log("Host Connect to AR Network");
_ARSessionManager.Initialize();
_ARSessionManager.EnableFeatures();
isHost = true;
ShowHideHostClientObjects();
//Go to Page 1 – Code
PageChange(1);
}
...
public void ClientConnectToGame()
{
//Start AR Session
//Connect AR Network
_ARSessionManager.Initialize();
_ARSessionManager.EnableFeatures();
//Hide timer before game start
gameTimer.timerBlock.SetActive(false);
//Go to Page 2 - Game Page
PageChange(2);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment