Browse Source

Removed check for playing in editor in LuaScript

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

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

@ -94,12 +94,7 @@ 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. initialised = true;
// Allows the user to edit the Lua script while the game is playing.
if ( !(Application.isPlaying && Application.isEditor) )
{
initialised = true;
}
} }
/// <summary> /// <summary>

Loading…
Cancel
Save