mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Edgegap Plugin: link to our custom documentation instead
This commit is contained in:
parent
05e9ca4646
commit
5aca20f2d9
@ -193,18 +193,23 @@ string GetExternalIpAddress()
|
||||
|
||||
void OpenDocumentationCallback()
|
||||
{
|
||||
ApiEnvironment selectedApiEnvironment = (ApiEnvironment)_apiEnvironmentSelect.value;
|
||||
string documentationUrl = selectedApiEnvironment.GetDocumentationUrl();
|
||||
// MIRROR CHANGE
|
||||
// ApiEnvironment selectedApiEnvironment = (ApiEnvironment)_apiEnvironmentSelect.value;
|
||||
// string documentationUrl = selectedApiEnvironment.GetDocumentationUrl();
|
||||
//
|
||||
// if (!string.IsNullOrEmpty(documentationUrl))
|
||||
// {
|
||||
// UnityEngine.Application.OpenURL(documentationUrl);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// string apiEnvName = Enum.GetName(typeof(ApiEnvironment), selectedApiEnvironment);
|
||||
// Debug.LogWarning($"Could not open documentation for api environment {apiEnvName}: No documentation URL.");
|
||||
// }
|
||||
|
||||
if (!string.IsNullOrEmpty(documentationUrl))
|
||||
{
|
||||
UnityEngine.Application.OpenURL(documentationUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
string apiEnvName = Enum.GetName(typeof(ApiEnvironment), selectedApiEnvironment);
|
||||
Debug.LogWarning($"Could not open documentation for api environment {apiEnvName}: No documentation URL.");
|
||||
}
|
||||
// link to the easiest documentation
|
||||
UnityEngine.Application.OpenURL("https://mirror-networking.gitbook.io/docs/hosting/edgegap-hosting-plugin-guide");
|
||||
// END MIRROR CHANGE
|
||||
}
|
||||
|
||||
void ConnectCallback()
|
||||
|
Loading…
Reference in New Issue
Block a user