From fea0a29d10ec91fb03bdc7130733620f80d028d4 Mon Sep 17 00:00:00 2001 From: grabowskil Date: Sat, 15 Aug 2026 19:09:20 +0200 Subject: [PATCH] added the table and an interactable chair --- NightclubArcadia/Assets/Dialogue/Objects.meta | 8 ++++++++ .../Assets/Dialogue/Objects/Chair.yarn | 16 ++++++++++++++++ .../Assets/Dialogue/Objects/Chair.yarn.meta | 10 ++++++++++ .../Assets/Scenes/DialogueTest.unity | 2 +- 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 NightclubArcadia/Assets/Dialogue/Objects.meta create mode 100644 NightclubArcadia/Assets/Dialogue/Objects/Chair.yarn create mode 100644 NightclubArcadia/Assets/Dialogue/Objects/Chair.yarn.meta diff --git a/NightclubArcadia/Assets/Dialogue/Objects.meta b/NightclubArcadia/Assets/Dialogue/Objects.meta new file mode 100644 index 0000000..73f4c20 --- /dev/null +++ b/NightclubArcadia/Assets/Dialogue/Objects.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: beedfd387b0d049ffb7534a81d2df45f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/NightclubArcadia/Assets/Dialogue/Objects/Chair.yarn b/NightclubArcadia/Assets/Dialogue/Objects/Chair.yarn new file mode 100644 index 0000000..ab7377e --- /dev/null +++ b/NightclubArcadia/Assets/Dialogue/Objects/Chair.yarn @@ -0,0 +1,16 @@ +// Everything that can be interacted with the chair. +// +// These nodes share a title, which makes them a node group. Callers just +// `<>` and Yarn runs the most specific variation whose +// `when:` conditions pass. Adding a new variation later means adding a node, +// not editing a growing <> chain. +// +// Each variation sets $went_inside so the calling scene knows the verdict. + +title: Chair_Interaction +--- +Narrator: An empty chair with a place card: {$player_name}. +-> Sit down. +-> Not yet. +<> +=== diff --git a/NightclubArcadia/Assets/Dialogue/Objects/Chair.yarn.meta b/NightclubArcadia/Assets/Dialogue/Objects/Chair.yarn.meta new file mode 100644 index 0000000..9c1923f --- /dev/null +++ b/NightclubArcadia/Assets/Dialogue/Objects/Chair.yarn.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 6f6437b77328240e590f205a6605cfcb +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 94073015eacc34c1d8fc6786e43d60ca, type: 3} diff --git a/NightclubArcadia/Assets/Scenes/DialogueTest.unity b/NightclubArcadia/Assets/Scenes/DialogueTest.unity index b732e9b..f879328 100644 --- a/NightclubArcadia/Assets/Scenes/DialogueTest.unity +++ b/NightclubArcadia/Assets/Scenes/DialogueTest.unity @@ -1277,7 +1277,7 @@ MonoBehaviour: npcName: Chair npcColor: {r: 0, g: 0, b: 1, a: 1} dialogueRunner: {fileID: 910000019} - yarnStartNode: Bartender_Talk + yarnStartNode: Chair_Interaction dialogueUI: {fileID: 263597886} labelHeight: 1.2 labelFontSize: 4