mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkManagerHUD: UnityEngine.Application.X changed to Application.X
This commit is contained in:
parent
498433e124
commit
551a8928d6
@ -30,7 +30,7 @@ void Update()
|
||||
|
||||
if (!manager.IsClientConnected() && !NetworkServer.active && manager.matchMaker == null)
|
||||
{
|
||||
if (UnityEngine.Application.platform != RuntimePlatform.WebGLPlayer)
|
||||
if (Application.platform != RuntimePlatform.WebGLPlayer)
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.S))
|
||||
{
|
||||
@ -81,7 +81,7 @@ void OnGUI()
|
||||
{
|
||||
if (noConnection)
|
||||
{
|
||||
if (UnityEngine.Application.platform != RuntimePlatform.WebGLPlayer)
|
||||
if (Application.platform != RuntimePlatform.WebGLPlayer)
|
||||
{
|
||||
if (GUI.Button(new Rect(xpos, ypos, 200, 20), "LAN Host(H)"))
|
||||
{
|
||||
@ -98,7 +98,7 @@ void OnGUI()
|
||||
manager.networkAddress = GUI.TextField(new Rect(xpos + 100, ypos, 95, 20), manager.networkAddress);
|
||||
ypos += spacing;
|
||||
|
||||
if (UnityEngine.Application.platform == RuntimePlatform.WebGLPlayer)
|
||||
if (Application.platform == RuntimePlatform.WebGLPlayer)
|
||||
{
|
||||
// cant be a server in webgl build
|
||||
GUI.Box(new Rect(xpos, ypos, 200, 25), "( WebGL cannot be server )");
|
||||
@ -171,7 +171,7 @@ void OnGUI()
|
||||
{
|
||||
ypos += 10;
|
||||
|
||||
if (UnityEngine.Application.platform == RuntimePlatform.WebGLPlayer)
|
||||
if (Application.platform == RuntimePlatform.WebGLPlayer)
|
||||
{
|
||||
GUI.Box(new Rect(xpos - 5, ypos, 220, 25), "(WebGL cannot use Match Maker)");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user