Implement final scene

This commit is contained in:
WillJeynes
2026-08-29 20:44:27 +01:00
parent fec7b392b5
commit 0c897631bc
18 changed files with 6049 additions and 4748 deletions
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b2e10f425a932960886cd59d79c0eb23
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bb869424f489dc60e83cd93bea07913c
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 858b9754729bf4c5f910f0d2f5c586e3
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d9cdb1ab078b5329e87232a834f22604
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+144
View File
@@ -0,0 +1,144 @@
{
"dialog": {
"the": {
"peasants": {
"are": {
"starving": "$OK",
"suffering": "$OK",
"losing hope": "$OK"
},
"need": {
"food": "$OK",
"help": "$OK",
"a king": "$OK"
}
},
"kingdom": {
"is": {
"falling apart": "$OK",
"dying": "$OK",
"in ruins": "$OK"
},
"deserves": {
"better": "$OK",
"a better king": "$OK"
}
},
"people": {
"need": {
"you": "$OK",
"answers": "$OK",
"hope": "$OK"
}
}
},
"you": {
"are": {
"the king": "$OK",
"not a real king": "$OK",
"doing nothing": "$OK",
"just sitting there": "$OK",
"making everything worse": "$OK",
"a terrible king": "$OK",
"going to say OK": "$OK"
},
"have": {
"failed": "$OK",
"done nothing": "$OK",
"let everyone down": "$OK",
"no idea what you are doing": "$OK",
"nothing to say": "$OK"
},
"sit": {
"here": "$OK",
"on your throne": "$OK",
"while people suffer": "$OK"
},
"do": {
"not": {
"care": "$OK",
"deserve the crown": "$OK",
"even listen to me": "$OK"
}
}
},
"I": {
"came": {
"here": {
"for answers": "$OK",
"to find the truth": "$OK",
"to see the king": "$OK"
}
},
"know": {
"what": {
"you did": "$OK",
"you are": "$OK"
}
},
"expected": {
"more": {
"from you": "$OK",
"than this": "$OK"
}
},
"pity": {
"you": "$OK"
},
"will": {
"not": {
"bow to you": "$OK",
"give up": "$OK",
"leave": "$OK"
}
},
"do": {
"not": {
"understand": "$OK",
"trust you": "$OK",
"like you": "$OK"
}
},
"am": {
"done": "$OK",
"leaving": "$OK",
"not afraid of you": "$OK"
}
},
"this": {
"is": {
"your fault": "$OK",
"all your doing": "$OK",
"a waste of time": "$OK",
"not what I expected": "$OK"
}
},
"what": {
"is": {
"wrong with you": "$OK",
"the point of this": "$OK",
"your plan": "$OK"
}
},
"why": {
"are": {
"you": {
"doing this": "$OK",
"just sitting there": "$OK"
}
}
},
"please": {
"say": {
"something else": "$OK",
"anything": "$OK"
}
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: fccd25abf5b644fb967183a4905c5fb7
timeCreated: 1788031091
+462 -4727
View File
File diff suppressed because it is too large Load Diff
+559
View File
@@ -119,6 +119,102 @@ NavMeshSettings:
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &71488927
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 71488930}
- component: {fileID: 71488929}
- component: {fileID: 71488928}
- component: {fileID: 71488931}
- component: {fileID: 71488932}
m_Layer: 0
m_Name: EndScene
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &71488928
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 71488927}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 20061c4fba047435b84052ea7566f8cf, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::GuardManager
type:
mod:
puzzle:
isfocussed: 0
GuardMaterials: []
--- !u!114 &71488929
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 71488927}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4bcd7646b8692c0c9b30c14a38141b66, type: 3}
m_Name:
m_EditorClassIdentifier: '::'
data: {fileID: 4900000, guid: fccd25abf5b644fb967183a4905c5fb7, type: 3}
--- !u!4 &71488930
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 71488927}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -89.00983, y: -0.00001, z: 9395.552}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &71488931
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 71488927}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 742d01e96d3414f0c9d0745f6199adcb, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::LevelLoader
DoorPrefabs: []
GuardPrefabs: []
widthAvail: 50
Doors: []
Guards: []
--- !u!114 &71488932
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 71488927}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aa525461e0ec0406aaab0cc263ba9dda, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::TutorialManager
tutorialOne: []
tutorialTwo: []
--- !u!1 &330585543
GameObject:
m_ObjectHideFlags: 0
@@ -623,6 +719,175 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1120117297
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 540143173720438785, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_Name
value: SpeechCanvas
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_Pivot.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2176111438793547186, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3131429045527127396, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3131429045527127396, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3131429045527127396, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3131429045527127396, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3131429045527127396, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3131429045527127396, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4535133858024552088, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4535133858024552088, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4535133858024552088, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4535133858024552088, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4535133858024552088, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4535133858024552088, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8342881152638936983, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8342881152638936983, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8342881152638936983, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8342881152638936983, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8342881152638936983, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8342881152638936983, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d9cdb1ab078b5329e87232a834f22604, type: 3}
--- !u!1 &1463622281
GameObject:
m_ObjectHideFlags: 0
@@ -760,6 +1025,296 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1463622281}
m_CullTransparentMesh: 1
--- !u!1001 &1674266750
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1598746130437288987, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_Name
value: QuestionCanvas
objectReference: {fileID: 0}
- target: {fileID: 3303194942028288903, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3303194942028288903, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3452456298213474825, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3452456298213474825, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3908470303302282028, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3908470303302282028, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037882610837975320, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4037882610837975320, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4252326540078101776, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4252326540078101776, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4321296137444170889, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4321296137444170889, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6412912561494217078, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6412912561494217078, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6412912561494217078, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6412912561494217078, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6670274560673525443, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6670274560673525443, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7033101543238553702, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7033101543238553702, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7033101543238553702, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7033101543238553702, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7163012162602677144, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7163012162602677144, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_Pivot.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7756441017190552768, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 858b9754729bf4c5f910f0d2f5c586e3, type: 3}
--- !u!1001 &2081971256
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_Pivot.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1968812974681590775, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7831839881338213466, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
propertyPath: m_Name
value: PauseCanvas
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: bb869424f489dc60e83cd93bea07913c, type: 3}
--- !u!1 &2082514209
GameObject:
m_ObjectHideFlags: 0
@@ -873,3 +1428,7 @@ SceneRoots:
- {fileID: 400817405}
- {fileID: 2082514213}
- {fileID: 616152337}
- {fileID: 1674266750}
- {fileID: 1120117297}
- {fileID: 71488930}
- {fileID: 2081971256}
+24 -7
View File
@@ -16,7 +16,7 @@ public class DialogManager : Singleton<DialogManager>
{
private GuardManager currentGuard;
private JObject dialogTree;
public JObject dialogTree;
[CanBeNull] private JObject currentItem;
@@ -25,8 +25,8 @@ public class DialogManager : Singleton<DialogManager>
public GameObject AskButton;
private Transform QuestionOptionArea;
private Transform QuestionInfillArea;
public Transform QuestionOptionArea;
public Transform QuestionInfillArea;
private Stack<string> FullQuestionPrefixes = new Stack<string>();
private string FullQuestion;
@@ -62,7 +62,13 @@ public class DialogManager : Singleton<DialogManager>
public void StartDialog(GuardManager guardId)
{
gameObject.SetActive(true);
dialogTree = LevelLoader.Instance.SpeechTree;
AskButton.SetActive(false);
QuestionOptionArea = transform.FindChildRecursive("ADDQOPTIONSHERE");
if (!GlobalStateManager.Instance.finalScene)
{
dialogTree = LevelLoader.Instance.SpeechTree;
}
currentGuard = guardId;
currentItem = dialogTree;
@@ -85,6 +91,7 @@ public class DialogManager : Singleton<DialogManager>
foreach (var kvp in currentItem)
{
Debug.Log(kvp.ToString());
//special keywords
if (kvp.Key == "DOORS")
{
@@ -137,7 +144,13 @@ public class DialogManager : Singleton<DialogManager>
AudioManager.Instance.PlaySound("WordAdd");
if (kvp.Value is JValue)
{
AddQuestionInfill(currentItem, kvp.Key + "?");
string addition = "?";
if (GlobalStateManager.Instance.finalScene)
{
addition = ".";
}
AddQuestionInfill(currentItem, kvp.Key + addition);
currentItem = null;
AskButton.SetActive(true);
@@ -259,8 +272,12 @@ public class DialogManager : Singleton<DialogManager>
}
var cdoor = LevelLoader.Instance.Doors.First((d) => d.type == "LIFE");
response = response.Replace("CDOOR", cdoor.mod.Replace("#",""));
var cdoor = LevelLoader.Instance.Doors.FirstOrDefault((d) => d.type == "LIFE");
if (cdoor != null)
{
response = response.Replace("CDOOR", cdoor.mod.Replace("#",""));
}
response = response.Replace("$", "");
+38
View File
@@ -0,0 +1,38 @@
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using UnityEngine;
public class EndSceneManager : MonoBehaviour
{
public TextAsset data;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
LevelLoader.Instance.Guards = new List<GuardManager>();
LevelLoader.Instance.Doors = new List<DoorManager>();
var text = data.ToString();
DialogManager.Instance.dialogTree = JObject.Parse(text)["dialog"] as JObject;
DialogManager.Instance.StartDialog(GetComponent<GuardManager>());
StartCoroutine(DoSomethingAfterOneSecond());
}
IEnumerator DoSomethingAfterOneSecond()
{
yield return new WaitForSeconds(1f);
// Code to run after 1 second
DialogManager.Instance.gameObject.SetActive(true);
}
// Update is called once per frame
void Update()
{
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 4bcd7646b8692c0c9b30c14a38141b66
+16 -3
View File
@@ -15,6 +15,8 @@ public class GlobalStateManager : Singleton<GlobalStateManager>
public TextAsset parlorPuzzles;
public bool finalScene = false;
//aaaaa theres nicer syntax for this i think
protected override bool dontDestroyOnLoad()
{
@@ -47,10 +49,12 @@ public class GlobalStateManager : Singleton<GlobalStateManager>
if (LevelIntended == levels.Count)
{
//win scene!!!
finalScene = true;
SceneManager.LoadScene(2);
}
else
{
finalScene = false;
//Reload game scene to start next level??
SceneManager.LoadScene(1);
}
@@ -73,8 +77,17 @@ public class GlobalStateManager : Singleton<GlobalStateManager>
public void LoadSpecificLevel(int level)
{
LevelIntended = level;
//load game scene
SceneManager.LoadScene(1);
if (level == levels.Count)
{
finalScene = true;
SceneManager.LoadScene(2);
}
else
{
finalScene = false;
LevelIntended = level;
//load game scene
SceneManager.LoadScene(1);
}
}
}
+13 -10
View File
@@ -46,17 +46,20 @@ public class GuardManager : MonoBehaviour, IDescribable
// Update is called once per frame
void Update()
{
if (isfocussed == 2 && focusLight.intensity < 250)
if (focusLight != null)
{
focusLight.intensity += Time.deltaTime * 100;
}
else if (isfocussed == 1 && focusLight.intensity < 150)
{
focusLight.intensity += Time.deltaTime * 100;
}
else if (isfocussed == 0 && focusLight.intensity > 100)
{
focusLight.intensity -= Time.deltaTime * 100;
if (isfocussed == 2 && focusLight.intensity < 250)
{
focusLight.intensity += Time.deltaTime * 100;
}
else if (isfocussed == 1 && focusLight.intensity < 150)
{
focusLight.intensity += Time.deltaTime * 100;
}
else if (isfocussed == 0 && focusLight.intensity > 100)
{
focusLight.intensity -= Time.deltaTime * 100;
}
}
}
+20 -1
View File
@@ -1,5 +1,6 @@
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using Utils;
@@ -72,16 +73,19 @@ public class MainMenuController : MonoBehaviour
Destroy(child.gameObject);
}
GameObject levelButton;
for (int i = 0; i < GlobalStateManager.Instance.levels.Count; i++)
{
int levelIndex = i;
GameObject levelButton = Instantiate(LevelItemPrefab, parent);
levelButton = Instantiate(LevelItemPrefab, parent);
if (i <= GlobalStateManager.Instance.HighestLevel)
{
levelButton.GetComponentInChildren<Button>().onClick.AddListener(() => {
AudioManager.Instance.PlaySound("Select");
GlobalStateManager.Instance.finalScene = false;
GlobalStateManager.Instance.LoadSpecificLevel(levelIndex);
});
}
@@ -91,5 +95,20 @@ public class MainMenuController : MonoBehaviour
}
levelButton.GetComponentInChildren<TextMeshProUGUI>().text = (i + 1).ToString();
}
levelButton = Instantiate(LevelItemPrefab, parent);
if (GlobalStateManager.Instance.HighestLevel == GlobalStateManager.Instance.levels.Count)
{
levelButton.GetComponentInChildren<Button>().onClick.AddListener(() => {
AudioManager.Instance.PlaySound("Select");
GlobalStateManager.Instance.LoadSpecificLevel(GlobalStateManager.Instance.levels.Count);
});
}
else
{
levelButton.GetComponent<Image>().color = Color.red;
}
levelButton.GetComponentInChildren<TextMeshProUGUI>().text = "FIN";
levelButton.GetComponentInChildren<TextMeshProUGUI>().fontSize/=2;
}
}
+9
View File
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using JetBrains.Annotations;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using Utils;
@@ -56,10 +57,18 @@ public class SpeechManager : Singleton<SpeechManager>
{
AudioManager.Instance.PlaySound("Select");
gameObject.SetActive(false);
//BORKBORKBORK
if (counter++ > 0 && LevelLoader.Instance.GlobalModifier == "CUP")
{
CupShuffle.Instance.StartShuffle();
}
//BORKBORKBORKBORK
if (GlobalStateManager.Instance.finalScene)
{
SceneManager.LoadScene(0);
}
}
}