@gamelearn/arcade-components 3.45.1 → 3.45.2
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.
|
@@ -69803,7 +69803,7 @@ function rnt({ animation: u, loopTimes: t, onAnimationFinish: e, onAnimationSave
|
|
|
69803
69803
|
m || console.error("[Animation]: Current Object ", i.uid, " does not have an animator.");
|
|
69804
69804
|
const _ = () => {
|
|
69805
69805
|
const g = m == null ? void 0 : m.getAction(u.url);
|
|
69806
|
-
g.setLoop(KG, 1 / 0), g.reset();
|
|
69806
|
+
m.setTime(0), g.setLoop(KG, 1 / 0), g.reset();
|
|
69807
69807
|
function S() {
|
|
69808
69808
|
d.current += 1, d.current >= t && y();
|
|
69809
69809
|
}
|
|
@@ -69814,10 +69814,10 @@ function rnt({ animation: u, loopTimes: t, onAnimationFinish: e, onAnimationSave
|
|
|
69814
69814
|
E && (d.current = 1, d.current >= t ? y() : m.addEventListener("loop", S));
|
|
69815
69815
|
}), l(!0);
|
|
69816
69816
|
};
|
|
69817
|
-
m != null && m.getAction(u == null ? void 0 : u.url) ?
|
|
69817
|
+
m != null && m.getAction(u == null ? void 0 : u.url) ? _() : ant.load(
|
|
69818
69818
|
u == null ? void 0 : u.url,
|
|
69819
69819
|
(g) => {
|
|
69820
|
-
m.register(u == null ? void 0 : u.url, g.animations[0]),
|
|
69820
|
+
m.register(u == null ? void 0 : u.url, g.animations[0]), _();
|
|
69821
69821
|
},
|
|
69822
69822
|
void 0,
|
|
69823
69823
|
(g) => {
|