Adding in the characters

Added debug buttons to cycle through the characters
Bug fixes
This commit is contained in:
Amaan Shawkath
2023-07-08 18:50:49 +01:00
committed by Minzkraut
parent 988621b810
commit c55f67606d
13 changed files with 752 additions and 42 deletions

37
Assets/Data/Adena.asset Normal file
View File

@@ -0,0 +1,37 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ddda90cbbcf3ea54e9105c3a5f0ac9a5, type: 3}
m_Name: Adena
m_EditorClassIdentifier:
m_image: {fileID: 0}
m_name: Adena
m_charisma: 3
m_strength: 10
m_dexterity: 10
m_intelligence: 10
m_dialogueOptions:
- text: "G\u2019day Sir, I am the fair Adena, princess of the faraway planet of
Velarius."
bulletizedText: Adena. Princess.
- text: "Working? A princess doesn\u2019t work, what do you have your robotic servants
for, after all? Well, that was before I left, now times are different\u2026"
bulletizedText: Stuck up princess doesn't work...
- text: "Once, when I was still a wee little child, a bird landed on my finger
while I was staring at the moon. My parents loved it. \u201CWhat a cute, little
princess,\u201D they said. Well, my favourite moment was when I smashed their
palace into pieces after they tried to marry me to Sir Reginald the Lizardman.
Me and a lizard! Can you imagine?"
bulletizedText: Destroying her parents palace for making her getting married
to a lizard...
- text: Away from this place and being worshipped as the goddess that I am, of
course.
bulletizedText: Being worshipped as a "goddess"...

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d92c258ff1f60e0468c12806ba88217d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,33 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ddda90cbbcf3ea54e9105c3a5f0ac9a5, type: 3}
m_Name: Adventure Cat
m_EditorClassIdentifier:
m_image: {fileID: 0}
m_name: Adventure Cat
m_charisma: 5
m_strength: 10
m_dexterity: 5
m_intelligence: 5
m_dialogueOptions:
- text: "<i>\u2026 (the cat looks at you, on her name collar you read: Adventure
Cat)</i>"
bulletizedText: Adventure Cat.
- text: "<i>\u2026 (the cat starts to purr)</i>"
bulletizedText: ...
- text: "<i>\u2026 (looking at the cat\u2019s claws you notice that they are drenched
in blood \u2026 and her Photon-pistol, it seems like this cat can handle almost
anything)</i>"
bulletizedText: Badass killer.
- text: "<i>\u2026 (Although cats are far from stupid, you don\u2019t think that
an adventure cat would necessarily think about this)</i>"
bulletizedText: N/A

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: da95af98c6305e743a515b1258bd9b40
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

33
Assets/Data/Amadeus.asset Normal file
View File

@@ -0,0 +1,33 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ddda90cbbcf3ea54e9105c3a5f0ac9a5, type: 3}
m_Name: Amadeus
m_EditorClassIdentifier:
m_image: {fileID: 0}
m_name: Amadeus
m_charisma: 2
m_strength: 7
m_dexterity: 7
m_intelligence: 7
m_dialogueOptions:
- text: "Amadeus the robot, that\u2019s my name. How can I be of service? "
bulletizedText: Amadeus.
- text: "Well, I\u2019m used to working for my old master. A crazy old scholar.
Always wanted me to climb up mountains and pick flowers."
bulletizedText: Used to working with his old master. Climbed mountains and picked
flowers.
- text: "Even though I\u2019ve seen many things in my life, my master used to do
the fighting. However, once I was told to try my hands at playing an instrument.
I liked it, but my master shut his ears and a nearby cave bear died instantly."
bulletizedText: Playing instruments... Really badly...
- text: "As a free robot on an exciting adventure. No people tho, I hate people\u2026"
bulletizedText: As a free robot with no people...

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2509abe8f1152ad45a6c61cc16d1106b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -12,6 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ddda90cbbcf3ea54e9105c3a5f0ac9a5, type: 3} m_Script: {fileID: 11500000, guid: ddda90cbbcf3ea54e9105c3a5f0ac9a5, type: 3}
m_Name: Derk m_Name: Derk
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_image: {fileID: 0}
m_name: Derk m_name: Derk
m_charisma: 5 m_charisma: 5
m_strength: 5 m_strength: 5
@@ -22,7 +23,7 @@ MonoBehaviour:
bulletizedText: Derk. bulletizedText: Derk.
- text: "Man, I just want to work, y\u2019know? Give me a task and I\u2019ll do - text: "Man, I just want to work, y\u2019know? Give me a task and I\u2019ll do
it, no problem for old Derk." it, no problem for old Derk."
bulletizedText: Just wants to work bulletizedText: Just wants to work.
- text: "This mornin\u2019 I helped an old lady get into one of those high speed - text: "This mornin\u2019 I helped an old lady get into one of those high speed
trains. They always say Derk the jerk, but no one ever says \u201CWow, what trains. They always say Derk the jerk, but no one ever says \u201CWow, what
a nice guy\u201D. " a nice guy\u201D. "

33
Assets/Data/Rufus.asset Normal file
View File

@@ -0,0 +1,33 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ddda90cbbcf3ea54e9105c3a5f0ac9a5, type: 3}
m_Name: Rufus
m_EditorClassIdentifier:
m_image: {fileID: 0}
m_name: Rufus
m_charisma: 0
m_strength: 0
m_dexterity: 0
m_intelligence: 0
m_dialogueOptions:
- text: I am Rufus, here to help you.
bulletizedText: Rufus.
- text: "I am a nature kinda guy, hunt, fetch, you know how it goes. Also, I\u2019m
a natural with people, as you can imagine. Everybody always wants to pet me,
it can be quite annoying."
bulletizedText: Anywhere with nature and people.
- text: Once, there was this guy that tried to steal my bone. I found him by following
his scent and then I stabbed him with my lightsword. Just kidding, I ratted
him out to the authorities of course.
bulletizedText: Told the authorities about the guy who stole his bone.
- text: Hmm, probably going on adventures with my 5 kids.
bulletizedText: Going on adventures with his kids.

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: aa6b95f25b9cafa428487022a1a864aa
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -30,7 +30,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1767811258655682326 --- !u!114 &1767811258655682326
MonoBehaviour: MonoBehaviour:
@@ -46,3 +46,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_characterDatas: m_characterDatas:
- {fileID: 11400000, guid: fe5c0edf44ede8146ac344d9538dafc6, type: 2} - {fileID: 11400000, guid: fe5c0edf44ede8146ac344d9538dafc6, type: 2}
- {fileID: 11400000, guid: d92c258ff1f60e0468c12806ba88217d, type: 2}
- {fileID: 11400000, guid: da95af98c6305e743a515b1258bd9b40, type: 2}
- {fileID: 11400000, guid: 2509abe8f1152ad45a6c61cc16d1106b, type: 2}
- {fileID: 11400000, guid: aa6b95f25b9cafa428487022a1a864aa, type: 2}

View File

@@ -217,6 +217,141 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &135693121
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 135693122}
- component: {fileID: 135693124}
- component: {fileID: 135693123}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &135693122
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 135693121}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 920543731}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &135693123
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 135693121}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Next Character
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4281479730
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 18
m_fontSizeBase: 18
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &135693124
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 135693121}
m_CullTransparentMesh: 1
--- !u!1 &300687582 --- !u!1 &300687582
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -646,6 +781,140 @@ MonoBehaviour:
m_ChildScaleWidth: 0 m_ChildScaleWidth: 0
m_ChildScaleHeight: 1 m_ChildScaleHeight: 1
m_ReverseArrangement: 0 m_ReverseArrangement: 0
--- !u!1 &920543730
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 920543731}
- component: {fileID: 920543734}
- component: {fileID: 920543733}
- component: {fileID: 920543732}
m_Layer: 5
m_Name: NextCharacter
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &920543731
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 920543730}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 135693122}
m_Father: {fileID: 1597852158}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 160, y: 30}
m_Pivot: {x: 1, y: 1}
--- !u!114 &920543732
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 920543730}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 920543733}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1439746448}
m_TargetAssemblyTypeName: DialogueController, Assembly-CSharp
m_MethodName: Debug_NextCharacter
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &920543733
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 920543730}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &920543734
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 920543730}
m_CullTransparentMesh: 1
--- !u!1 &1142350647 --- !u!1 &1142350647
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -692,6 +961,275 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1211683268
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1211683269}
- component: {fileID: 1211683272}
- component: {fileID: 1211683271}
- component: {fileID: 1211683270}
m_Layer: 5
m_Name: PrevCharacter
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1211683269
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1211683268}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1269805857}
m_Father: {fileID: 1597852158}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -41}
m_SizeDelta: {x: 160, y: 30}
m_Pivot: {x: 1, y: 1}
--- !u!114 &1211683270
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1211683268}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1211683271}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1439746448}
m_TargetAssemblyTypeName: DialogueController, Assembly-CSharp
m_MethodName: Debug_PreviousCharacter
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &1211683271
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1211683268}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1211683272
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1211683268}
m_CullTransparentMesh: 1
--- !u!1 &1269805856
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1269805857}
- component: {fileID: 1269805859}
- component: {fileID: 1269805858}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1269805857
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1269805856}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1211683269}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1269805858
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1269805856}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Prev. Character
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4281479730
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 18
m_fontSizeBase: 18
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &1269805859
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1269805856}
m_CullTransparentMesh: 1
--- !u!1 &1324808325 --- !u!1 &1324808325
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -968,6 +1506,8 @@ RectTransform:
m_Children: m_Children:
- {fileID: 1657983509} - {fileID: 1657983509}
- {fileID: 334093782} - {fileID: 334093782}
- {fileID: 920543731}
- {fileID: 1211683269}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 6 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -1482,12 +2022,8 @@ PrefabInstance:
m_TransformParent: {fileID: 1597852158} m_TransformParent: {fileID: 1597852158}
m_Modifications: m_Modifications:
- target: {fileID: 1347195527817132476, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 1347195527817132476, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.x
value: 0 value: 1
objectReference: {fileID: 0}
- target: {fileID: 1347195527817132476, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1347195527817132476, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 1347195527817132476, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_SizeDelta.x propertyPath: m_SizeDelta.x
@@ -1495,31 +2031,23 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1347195527817132476, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 1347195527817132476, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 0 value: -0.000045776367
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_SizeDelta.x propertyPath: m_SizeDelta.x
value: 280 value: 379.949
objectReference: {fileID: 0}
- target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_SizeDelta.y
value: 50
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 140 value: 189.9745
objectReference: {fileID: 0}
- target: {fileID: 2448838632044913563, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_AnchoredPosition.y
value: -60
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4819624461391977750, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 4819624461391977750, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_Name propertyPath: m_Name
@@ -1527,7 +2055,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4819624461391977750, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 4819624461391977750, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6850406712601294282, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 6850406712601294282, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
@@ -1563,7 +2091,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6878822692408269584, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 6878822692408269584, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_SizeDelta.x propertyPath: m_SizeDelta.x
value: 280 value: 379.949
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6878822692408269584, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3} - target: {fileID: 6878822692408269584, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_SizeDelta.y propertyPath: m_SizeDelta.y
@@ -1617,24 +2145,6 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8356091297438698885, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_text
value: 'QUESTION
ANSWER'
objectReference: {fileID: 0}
- target: {fileID: 8356091297438698885, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_fontSize
value: 22
objectReference: {fileID: 0}
- target: {fileID: 8356091297438698885, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_fontSizeBase
value: 22
objectReference: {fileID: 0}
- target: {fileID: 8356091297438698885, guid: 4c5924b3c54ec124da260e5cf3460969, type: 3}
propertyPath: m_enableAutoSizing
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects: []

View File

@@ -6,10 +6,12 @@ public class DialogueController : MonoBehaviour
{ {
[SerializeField] private DialoguePanel m_dialoguePanel; [SerializeField] private DialoguePanel m_dialoguePanel;
private int m_currentIndex = 0;
// DEBUG - Will need replacing with the character you selected. // DEBUG - Will need replacing with the character you selected.
private void Start() private void Start()
{ {
DisplayCharacterText(CharacterManager.Instance.CharacterDatas[0]); DisplayCharacterText(CharacterManager.Instance.CharacterDatas[m_currentIndex]);
m_dialoguePanel.OnQuestionsFinished += OnQuestionsFinished; m_dialoguePanel.OnQuestionsFinished += OnQuestionsFinished;
} }
@@ -28,4 +30,22 @@ public class DialogueController : MonoBehaviour
// TODO: stop the dialogue and return to gameplay... // TODO: stop the dialogue and return to gameplay...
// TODO: we could probably show a "Quit" button highlighted. // TODO: we could probably show a "Quit" button highlighted.
} }
public void Debug_NextCharacter()
{
if (m_currentIndex + 1 >= CharacterManager.Instance.CharacterDatas.Count)
return;
m_currentIndex++;
DisplayCharacterText(CharacterManager.Instance.CharacterDatas[m_currentIndex]);
}
public void Debug_PreviousCharacter()
{
if (m_currentIndex - 1 < 0)
return;
m_currentIndex--;
DisplayCharacterText(CharacterManager.Instance.CharacterDatas[m_currentIndex]);
}
} }

View File

@@ -42,6 +42,12 @@ public class DialoguePanel : MonoBehaviour
{ {
Cleanup(); Cleanup();
if (m_characterSheet != null)
{
// Clear the old sheet
m_characterSheet.gameObject.SetActive(false);
}
m_questionsAsked = 0; m_questionsAsked = 0;
m_currentCharacter = characterData; m_currentCharacter = characterData;
m_characterNameText.text = characterData.name; m_characterNameText.text = characterData.name;
@@ -52,6 +58,7 @@ public class DialoguePanel : MonoBehaviour
m_characterSheet.SetName(characterData.name); m_characterSheet.SetName(characterData.name);
m_characterSheet.gameObject.SetActive(true); m_characterSheet.gameObject.SetActive(true);
m_questionHolder.gameObject.SetActive(true);
gameObject.SetActive(true); gameObject.SetActive(true);
} }