mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-01 20:03:55 -04:00
Added callbacks when the System is added as well
This commit is contained in:
parent
940217af40
commit
536f42ddc6
1 changed files with 6 additions and 0 deletions
|
@ -120,6 +120,12 @@ function Instance:addSystem(system, eventName, callback, enabled)
|
|||
callback = callback or eventName,
|
||||
enabled = enabled == nil and true or enabled,
|
||||
}
|
||||
|
||||
if enabled then
|
||||
system:enabledCallback(callback or eventName)
|
||||
else
|
||||
system:disabledCallback(callback or eventName)
|
||||
end
|
||||
end
|
||||
|
||||
local e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue