Skip to content

Commit b856658

Browse files
authored
Update readme.md
1 parent 41f2283 commit b856658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn main() -> std::io::Result<()> {
7272
)
7373
7474
// generate events for scripts to pickup
75-
.add_system(trigger_on_update_script_callback)
75+
.add_system(trigger_on_update_lua)
7676
.add_system(trigger_on_update_rhai)
7777
7878
// attach script components to entities
@@ -116,7 +116,7 @@ impl<'lua> ToLua<'lua> for MyLuaArg {
116116
}
117117

118118
// event callback generator for lua
119-
pub fn trigger_on_update_script_callback(mut w: PriorityEventWriter<LuaEvent<MyLuaArg>>) {
119+
pub fn trigger_on_update_lua(mut w: PriorityEventWriter<LuaEvent<MyLuaArg>>) {
120120
let event = LuaEvent::<MyLuaArg> {
121121
hook_name: "on_update".to_string(),
122122
args: Vec::default(),

0 commit comments

Comments
 (0)