대화구조 수정

This commit is contained in:
2026-07-30 13:20:13 +09:00
parent 2413483853
commit 519e351fa5
15 changed files with 778 additions and 17 deletions

View File

@@ -14,6 +14,11 @@ public class LocationManager : MonoBehaviour
[Tooltip("게임 시작 시 입장할 장소")]
[SerializeField] private LocationData _startLocation;
[Tooltip("장소 비트(StoryBeat의 Character를 비워 둔 항목)를 재생할 DialogPlayer. " +
"CharacterVoiceObject 없는 씬 오브젝트에 DialogPlayer만 붙여 연결한다. " +
"비우면 장소 자동 진행을 쓰지 않는다")]
[SerializeField] private DialogPlayer _scenePlayer;
public StoryDatabase Database => _database;
public LocationData Current { get; private set; }
@@ -66,6 +71,12 @@ public void MoveTo(LocationData location)
? Instantiate(location.Prefab, _locationRoot)
: null;
RefreshSlots();
// 장소 비트 자동 진행 — 프리팹 생성과 슬롯 갱신이 끝난 뒤에 시작한다.
// 조건을 만족하는 장소 비트가 없으면 아무 일도 일어나지 않는다.
// 반복 재생을 막으려면 그 비트의 OnceOnly를 켜 둘 것.
if (_scenePlayer != null)
_scenePlayer.PlayAuto();
}
// 대화로 진행도/트리거가 바뀌면 등장 캐릭터도 달라질 수 있다