Few small tweaks
This commit is contained in:
parent
73175b6965
commit
d6e0385463
|
@ -49,7 +49,7 @@ function main() {
|
||||||
Events.OnLeave(function (e) {
|
Events.OnLeave(function (e) {
|
||||||
delete colliders[e.Actor.ID()];
|
delete colliders[e.Actor.ID()];
|
||||||
|
|
||||||
if (Object.keys(colliders).length === 0) {
|
if (Object.keys(colliders).length === 0 && !stickyDown) {
|
||||||
Sound.Play("button-up.wav")
|
Sound.Play("button-up.wav")
|
||||||
Self.ShowLayer(0);
|
Self.ShowLayer(0);
|
||||||
Message.Publish("power", false);
|
Message.Publish("power", false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user