Ejemplo n.º 1
0
 void OpenGame(string gameName)
 {
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.displayURLAsPageTitle = false;
     options.pageTitle             = "👾 ~spaces~ 👾";
     options.hidesHistoryButtons   = true;
     options.backButtonText        = "Quit";
     options.pinchAndZoomEnabled   = true;
     // ios: left, bottom, top, right
     InAppBrowser.EdgeInsets insets = new InAppBrowser.EdgeInsets(0, 50, 50, 0);
     options.insets = insets;
     InAppBrowser.OpenURL("https://playingcards.io/game/" + gameName, options);
 }
Ejemplo n.º 2
0
 public void JoinGame()
 {
     stepInGame++;
     Debug.Log("zzzz potential code to join : " + potentialGameCode);
     character.JoinedGame();
     InAppBrowser.DisplayOptions options = new InAppBrowser.DisplayOptions();
     options.displayURLAsPageTitle = false;
     options.pageTitle             = "👾 ~spaces~ 👾";
     options.hidesHistoryButtons   = true;
     options.backButtonText        = "Quit";
     options.pinchAndZoomEnabled   = true;
     InAppBrowser.EdgeInsets insets = new InAppBrowser.EdgeInsets(0, 50, 50, 0);
     options.insets = insets;
     InAppBrowser.OpenURL("https://playingcards.io/" + potentialGameCode, options);
 }