react-simple-game-engine 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,9 +149,9 @@ var Entity = /** @class */ (function (_super) {
|
|
149
149
|
for (var name_1 in this.timerJobListeners) {
|
150
150
|
var _a = this.timerJobListeners[name_1], timeCounter = _a.timeCounter, interval = _a.interval, job = _a.job, defaultRun = _a.defaultRun;
|
151
151
|
if (defaultRun || timeCounter / 1000 >= interval) {
|
152
|
-
defaultRun = false;
|
153
152
|
timeCounter = 0;
|
154
153
|
job();
|
154
|
+
this.timerJobListeners[name_1].defaultRun = false;
|
155
155
|
}
|
156
156
|
timeCounter += Renderer.deltaTime;
|
157
157
|
this.timerJobListeners[name_1].timeCounter = timeCounter;
|