Skip to content

Commit

Permalink
Update hook example
Browse files Browse the repository at this point in the history
  • Loading branch information
Neptune QTG authored and Neptune QTG committed Nov 6, 2020
1 parent 5f87962 commit bfc1df1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions LuaLoader.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions LuaLoader/LuaLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug momo|AnyCPU'">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug Mono|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug momo\</OutputPath>
<OutputPath>bin\Debug_Mono\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
5 changes: 4 additions & 1 deletion example/hook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bfc1df1

Please sign in to comment.