@gamelearn/arcade-components 3.5.2 → 3.5.3
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.
|
@@ -57269,26 +57269,26 @@ function DialogDecision(o) {
|
|
|
57269
57269
|
const cache = {}, loader = new GLTFLoader();
|
|
57270
57270
|
function useStateMachine(o) {
|
|
57271
57271
|
const e = useThree((l) => l.scene), r = useMemo(() => {
|
|
57272
|
-
var f, c, h;
|
|
57272
|
+
var f, c, h, y;
|
|
57273
57273
|
const l = {};
|
|
57274
|
-
for (const
|
|
57275
|
-
if (
|
|
57276
|
-
for (const
|
|
57277
|
-
if (!
|
|
57274
|
+
for (const E of o)
|
|
57275
|
+
if (E.slots)
|
|
57276
|
+
for (const g of E.slots) {
|
|
57277
|
+
if (!g.uid)
|
|
57278
57278
|
continue;
|
|
57279
|
-
const
|
|
57280
|
-
if (!
|
|
57279
|
+
const _ = (f = g.character) == null ? void 0 : f.resource.animations;
|
|
57280
|
+
if (!_)
|
|
57281
57281
|
continue;
|
|
57282
|
-
const
|
|
57283
|
-
l[
|
|
57284
|
-
...l[
|
|
57285
|
-
[
|
|
57286
|
-
} : l[
|
|
57287
|
-
[
|
|
57288
|
-
},
|
|
57289
|
-
...l[
|
|
57290
|
-
[`${
|
|
57291
|
-
}), l[
|
|
57282
|
+
const p = ((c = g.animation) == null ? void 0 : c.url) || _[g.emotion].url;
|
|
57283
|
+
l[g.uid] ? (h = l[g.uid]) != null && h[g.emotion] || (l[g.uid] = {
|
|
57284
|
+
...l[g.uid],
|
|
57285
|
+
[g.emotion]: p
|
|
57286
|
+
}) : l[g.uid] = {
|
|
57287
|
+
[g.emotion]: p
|
|
57288
|
+
}, g.emotion.includes("seated") || (l[g.uid] = {
|
|
57289
|
+
...l[g.uid],
|
|
57290
|
+
[`${g.emotion}-seated`]: ((y = _[`${g.emotion}-seated`]) == null ? void 0 : y.url) || _["idle-seated"].url
|
|
57291
|
+
}), l[g.uid].talking = _.talking.url;
|
|
57292
57292
|
}
|
|
57293
57293
|
return l;
|
|
57294
57294
|
}, [o]), t = useMemo(() => {
|