Merge branch 'feature/face-system' into 'develop'

气泡修改

See merge request aibis-dream/aibis-dream!55
This commit is contained in:
2024-09-19 17:51:24 +00:00
8 changed files with 298 additions and 72 deletions
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using AibisDream.Kit;
using UnityEngine;
using Yarn.Unity;
@@ -77,13 +78,20 @@ namespace AibisDream
private IDialogView SelectBubbleByCharacter(CharacterVo characterVo)
{
return characterVo.role switch
var targetBubble = characterVo.role switch
{
ActorRole.Player => _playerBubble,
ActorRole.MainActor => _actorBubble,
ActorRole.Aside => _normalBox,
_ => _normalBox
};
foreach (var bubble in _dialogViews.Where(bubble => bubble != targetBubble))
{
bubble.HideDialog();
}
return targetBubble;
}
private void ProcessOtherBox()