Browse Source

Fixed compile error on Webplayer platform

master
Chris Gregan 9 years ago
parent
commit
5494e752d8
  1. 4
      Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaEnvironment.cs

4
Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaEnvironment.cs vendored

@ -103,7 +103,7 @@ namespace Fungus
/// <summary> /// <summary>
/// Launches the remote Lua debugger in your browser and breaks execution at the first executed Lua command. /// Launches the remote Lua debugger in your browser and breaks execution at the first executed Lua command.
/// </summary> /// </summary>
[Tooltip("Launches the remote Lua debugger in your browser and breaks execution at the first executed Lua command.")] [Tooltip("Launches the remote Lua debugger in your browser and breaks execution at the first executed Lua command. Standalone platform only.")]
public bool remoteDebugger = false; public bool remoteDebugger = false;
/// <summary> /// <summary>
@ -344,6 +344,7 @@ namespace Fungus
protected virtual void ActivateRemoteDebugger(Script script) protected virtual void ActivateRemoteDebugger(Script script)
{ {
#if UNITY_STANDALONE
if (remoteDebuggerService == null) if (remoteDebuggerService == null)
{ {
remoteDebuggerService = new RemoteDebuggerService(); remoteDebuggerService = new RemoteDebuggerService();
@ -356,6 +357,7 @@ namespace Fungus
// start the web-browser at the correct url. Replace this or just // start the web-browser at the correct url. Replace this or just
// pass the url to the user in some way. // pass the url to the user in some way.
Process.Start(remoteDebuggerService.HttpUrlStringLocalHost); Process.Start(remoteDebuggerService.HttpUrlStringLocalHost);
#endif
} }
/// <summary> /// <summary>

Loading…
Cancel
Save