Fix animations from not deleting gameobjects

This commit is contained in:
2024-04-02 07:41:46 -05:00
parent 32333c32ad
commit 3f73a808d8
9 changed files with 63 additions and 62 deletions

View File

@@ -58,14 +58,14 @@ actor.interval = function(fn, seconds) {
}
actor.delay = function(fn, seconds) {
var that = this;
var timers = this.timers;
var stop = function() {
that.timers.remove(stop);
timers.remove(stop);
rm();
}
function execute() {
fn.call(that);
fn();
stop();
}
@@ -80,7 +80,7 @@ actor.delay = function(fn, seconds) {
var rm = Register.appupdate.register(update);
this.timers.push(stop);
timers.push(stop);
return stop;
};