NetworkManagerHUD: UnityEngine.Application.X changed to Application.X

This commit is contained in:
vis2k 2018-07-19 12:01:46 +02:00
parent 498433e124
commit 551a8928d6

View File

@ -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;