diff --git a/LuaLoader.sln b/LuaLoader.sln index dba1d51..1028807 100644 --- a/LuaLoader.sln +++ b/LuaLoader.sln @@ -8,14 +8,14 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug Il2CPP|Any CPU = Debug Il2CPP|Any CPU - Debug momo|Any CPU = Debug momo|Any CPU + Debug Mono|Any CPU = Debug Mono|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {9985C0F9-AB5A-4464-8529-2BECAAC9E137}.Debug Il2CPP|Any CPU.ActiveCfg = Debug Il2CPP|Any CPU {9985C0F9-AB5A-4464-8529-2BECAAC9E137}.Debug Il2CPP|Any CPU.Build.0 = Debug Il2CPP|Any CPU - {9985C0F9-AB5A-4464-8529-2BECAAC9E137}.Debug momo|Any CPU.ActiveCfg = Debug momo|Any CPU - {9985C0F9-AB5A-4464-8529-2BECAAC9E137}.Debug momo|Any CPU.Build.0 = Debug momo|Any CPU + {9985C0F9-AB5A-4464-8529-2BECAAC9E137}.Debug Mono|Any CPU.ActiveCfg = Debug Mono|Any CPU + {9985C0F9-AB5A-4464-8529-2BECAAC9E137}.Debug Mono|Any CPU.Build.0 = Debug Mono|Any CPU {9985C0F9-AB5A-4464-8529-2BECAAC9E137}.Release|Any CPU.ActiveCfg = Release|Any CPU {9985C0F9-AB5A-4464-8529-2BECAAC9E137}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection diff --git a/LuaLoader/LuaLoader.csproj b/LuaLoader/LuaLoader.csproj index f4ce9a5..116fde8 100644 --- a/LuaLoader/LuaLoader.csproj +++ b/LuaLoader/LuaLoader.csproj @@ -37,9 +37,9 @@ - + true - bin\Debug momo\ + bin\Debug_Mono\ DEBUG;TRACE full AnyCPU diff --git a/example/hook.lua b/example/hook.lua index d6a68af..9165f28 100644 --- a/example/hook.lua +++ b/example/hook.lua @@ -20,7 +20,10 @@ end) -- Update hook hook.Add('OnUpdate','Example',function() - -- Do something + -- If f1 is pressed, it will trigger + if InputManager.GetKeyDown(KeyCode.F1) then + -- Do something + end end) -- Call when the level is loaded