@gamelearn/arcade-components 3.17.0 → 3.17.1
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.
|
@@ -60722,17 +60722,19 @@ function useStateMachine(l) {
|
|
|
60722
60722
|
return b.mix("idle"), b.getAction("idle");
|
|
60723
60723
|
{
|
|
60724
60724
|
const S = n[u], E = p.split("_")[0], g = S[E], v = cache[S.talking];
|
|
60725
|
-
|
|
60726
|
-
|
|
60727
|
-
|
|
60728
|
-
|
|
60729
|
-
|
|
60730
|
-
|
|
60731
|
-
_.userData._active
|
|
60732
|
-
|
|
60733
|
-
|
|
60734
|
-
|
|
60735
|
-
|
|
60725
|
+
if (g) {
|
|
60726
|
+
let R = cache[g];
|
|
60727
|
+
if (!R) {
|
|
60728
|
+
const { animations: T } = await loader.loadAsync(g);
|
|
60729
|
+
R = cache[g] = T[0];
|
|
60730
|
+
}
|
|
60731
|
+
if (p.includes("talking") && p !== "talking" && (R = mixWithTalkingClip(v, R)), !_.userData._active || _.userData._active !== p) {
|
|
60732
|
+
_.userData._active = p;
|
|
60733
|
+
const T = b.register(p, R);
|
|
60734
|
+
return new Promise((x) => {
|
|
60735
|
+
b.mix(p).then((C) => x(C ? T : !1));
|
|
60736
|
+
});
|
|
60737
|
+
}
|
|
60736
60738
|
}
|
|
60737
60739
|
}
|
|
60738
60740
|
return new Promise((S) => S(!1));
|