Browse Source

Removed check for playing in editor in LuaScript

master
Christopher 9 years ago
parent
commit
1cc3355d16
  1. 5
      Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaScript.cs

5
Assets/Fungus/Thirdparty/FungusLua/Scripts/LuaScript.cs vendored

@ -94,13 +94,8 @@ namespace Fungus
string s = GetLuaString(); string s = GetLuaString();
luaFunction = luaEnvironment.LoadLuaString(s, friendlyName); luaFunction = luaEnvironment.LoadLuaString(s, friendlyName);
// Always initialise when playing in the editor.
// Allows the user to edit the Lua script while the game is playing.
if ( !(Application.isPlaying && Application.isEditor) )
{
initialised = true; initialised = true;
} }
}
/// <summary> /// <summary>
/// Returns the Lua string to be executed. /// Returns the Lua string to be executed.

Loading…
Cancel
Save