mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 12:24:11 -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,
|
callback = callback or eventName,
|
||||||
enabled = enabled == nil and true or enabled,
|
enabled = enabled == nil and true or enabled,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if enabled then
|
||||||
|
system:enabledCallback(callback or eventName)
|
||||||
|
else
|
||||||
|
system:disabledCallback(callback or eventName)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local e
|
local e
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue