Merge branch 'feature/face-system' into 'develop'
气泡修改 See merge request aibis-dream/aibis-dream!55
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user