히든분기

This commit is contained in:
2026-07-23 10:50:22 +09:00
parent 3db450e78d
commit e1c43c9b3d
6 changed files with 228 additions and 12 deletions

View File

@@ -40,6 +40,19 @@ public class DialogNode : ScriptableObject
public DialogNode Next; // 선택지 없을 때 자동으로 갈 노드
public List<DialogChoice> Choices; // 있으면 플레이어 선택 대기
[Header("Hidden Branch")]
[Tooltip("이 대사가 재생되는 동안 특정 행동(제스처)을 하면 Next/선택지 대신 이 노드로 몰래 분기. " +
"비우면 히든 분기 없음 — 평소엔 존재하지 않는 것처럼 보인다")]
public DialogNode HiddenBranch;
[Tooltip("히든 분기를 여는 제스처 키 (DialogGestureZone의 Gesture Key와 일치). " +
"비우면 아무 제스처 존이나 발동 가능")]
public string HiddenGestureKey;
[Tooltip("히든 분기를 탔을 때 기록할 선택지 Code (선택지의 Code와 동일한 용도). " +
"비우면 기록 안 함. 이후 대화 조건(RequiredChoiceCodes)에서 검사 가능")]
public string HiddenCode;
[Header("ChoiceQuestion")]
[TextArea(2,5)] public string ChoiceQuestion;