void GUIDisplayGameCenterControls()

in auth/testapp/Assets/Firebase/Sample/Auth/UIHandler.cs [700:725]


    void GUIDisplayGameCenterControls() {
      bool isOnIosDevice = Application.platform == RuntimePlatform.IPhonePlayer;
      bool isOnOSXDesktop = (Application.platform == RuntimePlatform.OSXEditor ||
                              Application.platform == RuntimePlatform.OSXPlayer);

      if(isOnIosDevice || isOnOSXDesktop)
      {
        if (GUILayout.Button(new GUIContent("Authenticate To Game Center"))) {
          AuthenticateToGameCenter();
        }

        bool gameCenterEnabled = (isOnIosDevice ?
                                    Firebase.Auth.GameCenterAuthProvider.IsPlayerAuthenticated() :
                                    false);
        using (new ScopedGuiEnabledModifier(gameCenterEnabled))
        {
          string tooltip = "";
          if(!gameCenterEnabled) {
            tooltip = "No Game Center player authenticated.";
          }
          if (GUILayout.Button(new GUIContent("Sign In With Game Center", tooltip))) {
            SignInWithGameCenterAsync();
          }
        }
      }
    }