@gamelearn/arcade-components 2.31.2 → 2.31.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.
@@ -381,6 +381,7 @@ var DialogComponent = function DialogComponent(_ref) {
381
381
  var backLine = (0, _react.useCallback)(function () {
382
382
  lastTalking.current = _objectSpread({}, talkingCharacter);
383
383
  setAudioFailed(false);
384
+ resetTalkingAnimation();
384
385
  if (isBranched) {
385
386
  handleBranchDirection(false);
386
387
  } else if (!previousLineWasDecision()) {
@@ -439,6 +440,7 @@ var DialogComponent = function DialogComponent(_ref) {
439
440
  lastTalking.current = _objectSpread({}, talkingCharacter);
440
441
  setEdgesHistory([].concat(_toConsumableArray(edgesHistory), [currentLineData.id]));
441
442
  setAudioFailed(false);
443
+ resetTalkingAnimation();
442
444
  if (isBranched) {
443
445
  if (choice) {
444
446
  handleDecisionBranch(choice, reset);
@@ -577,11 +579,15 @@ var DialogComponent = function DialogComponent(_ref) {
577
579
  if (element && !lastSet.current) {
578
580
  setTimeout(function () {
579
581
  if (talkingCharacter.uid === element.uid) {
582
+ var _userData$active, _userData$active2;
580
583
  moveBubble(element);
581
- var isSeated = element.isSeated;
584
+ var isSeated = element.isSeated,
585
+ userData = element.userData;
582
586
  var emotion = talkingCharacter.emotion;
583
587
  var includesSeated = emotion.includes('seated');
584
- startAnimation(talkingCharacter.uid, isSeated && !includesSeated ? "".concat(emotion, "-seated") : emotion);
588
+ if (!((_userData$active = userData.active) !== null && _userData$active !== void 0 && _userData$active.includes('talking')) && !((_userData$active2 = userData.active) !== null && _userData$active2 !== void 0 && _userData$active2.includes(emotion))) {
589
+ startAnimation(talkingCharacter.uid, isSeated && !includesSeated ? "".concat(emotion, "-seated") : emotion);
590
+ }
585
591
  var setMessage = function setMessage() {
586
592
  var _talkingCharacter$cha;
587
593
  setCurrentMessage({
@@ -200,6 +200,7 @@ function useStateMachine(lines) {
200
200
  if (emotion !== 'talking' && actionList.talking) {
201
201
  clone = clip.clone();
202
202
  clone.name = "".concat(emotion, "_talking");
203
+ actionList.talking.reset();
203
204
  talkingClip = actionList.talking.getClip();
204
205
  _action = (0, _.mixWithTalkingClip)(root, talkingClip, clone);
205
206
  (0, _.activateAction)(_action, 0);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "2.31.2",
5
+ "version": "2.31.3",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",