From 0caaecbcfb1595ab77eb399604c931f04af7c9ae Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 12 Jan 2023 23:45:09 -0500 Subject: [PATCH] basic level select screen --- namedropper/Assets/Resources/categories.yaml | 2 +- .../Assets/Scenes/CategorySelect.unity | 1050 +++++++++++++++++ .../Assets/Scenes/CategorySelect.unity.meta | 7 + namedropper/Assets/Scripts/Game.cs | 73 +- namedropper/Assets/Scripts/GameDataManager.cs | 51 + .../Assets/Scripts/GameDataManager.cs.meta | 11 + namedropper/Assets/Scripts/Player.cs | 35 +- namedropper/Assets/Scripts/TopicBox.cs | 21 + namedropper/Assets/Scripts/TopicBox.cs.meta | 11 + namedropper/Assets/Scripts/TopicSelect.cs | 37 + .../Assets/Scripts/TopicSelect.cs.meta | 11 + .../ProjectSettings/EditorBuildSettings.asset | 10 +- 12 files changed, 1232 insertions(+), 87 deletions(-) create mode 100644 namedropper/Assets/Scenes/CategorySelect.unity create mode 100644 namedropper/Assets/Scenes/CategorySelect.unity.meta create mode 100644 namedropper/Assets/Scripts/GameDataManager.cs create mode 100644 namedropper/Assets/Scripts/GameDataManager.cs.meta create mode 100644 namedropper/Assets/Scripts/TopicBox.cs create mode 100644 namedropper/Assets/Scripts/TopicBox.cs.meta create mode 100644 namedropper/Assets/Scripts/TopicSelect.cs create mode 100644 namedropper/Assets/Scripts/TopicSelect.cs.meta diff --git a/namedropper/Assets/Resources/categories.yaml b/namedropper/Assets/Resources/categories.yaml index 9afa5d0..c3d41b7 100644 --- a/namedropper/Assets/Resources/categories.yaml +++ b/namedropper/Assets/Resources/categories.yaml @@ -268,7 +268,7 @@ Topics: - Juice - Good as Hell - Rumors -- Topic: Videogames Characters +- Topic: Videogame Characters Categories: - Category: Super Mario Bros. Elements: diff --git a/namedropper/Assets/Scenes/CategorySelect.unity b/namedropper/Assets/Scenes/CategorySelect.unity new file mode 100644 index 0000000..35f5305 --- /dev/null +++ b/namedropper/Assets/Scenes/CategorySelect.unity @@ -0,0 +1,1050 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &107001398 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 107001399} + m_Layer: 5 + m_Name: Scores + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &107001399 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 107001398} + 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_Children: + - {fileID: 1225785572} + m_Father: {fileID: 1666960088} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &302674577 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 1682087380} + m_Modifications: + - target: {fileID: 1085594869219034861, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_Size.x + value: 849.06 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Name + value: Friends + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[0] + value: Rachel Green + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[1] + value: Joey Tribbiani + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[2] + value: Chandler Bing + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[3] + value: Ross Geller + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[4] + value: Monica Geller + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[5] + value: Phoebe Buffay + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[6] + value: Janice Hosenstein + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[7] + value: Gunther + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[8] + value: Roy, the Stripper + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[9] + value: Ursula Buffay + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760798, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_Name + value: Topic1 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalPosition.x + value: -341 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalPosition.y + value: -10.900024 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalPosition.z + value: -188.99962 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757547953156, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalScale.x + value: 4.2102113 + objectReference: {fileID: 0} + - target: {fileID: 1499098757669286102, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_Text + value: Category + objectReference: {fileID: 0} + - target: {fileID: 1499098758628412651, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalScale.x + value: -3.2209778 + objectReference: {fileID: 0} + - target: {fileID: 7182421569596414056, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7985489786620569223, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: + - {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + m_SourcePrefab: {fileID: 100100000, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} +--- !u!4 &302674578 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + m_PrefabInstance: {fileID: 302674577} + m_PrefabAsset: {fileID: 0} +--- !u!1 &330129965 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1499098757095760798, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + m_PrefabInstance: {fileID: 785169904} + m_PrefabAsset: {fileID: 0} +--- !u!114 &330129966 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 330129965} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ae3cf3ee1d381b544985a421e4ecbc64, type: 3} + m_Name: + m_EditorClassIdentifier: + Name: + TopicData: + Topic: + Categories: [] +--- !u!114 &330129967 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 330129965} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ae3cf3ee1d381b544985a421e4ecbc64, type: 3} + m_Name: + m_EditorClassIdentifier: + Name: + TopicData: + Topic: + Categories: [] +--- !u!224 &554720354 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + m_PrefabInstance: {fileID: 9049015332794659158} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &785169904 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 1682087380} + m_Modifications: + - target: {fileID: 1085594869219034861, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_Size.x + value: 835.8 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Name + value: Friends + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[0] + value: Rachel Green + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[1] + value: Joey Tribbiani + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[2] + value: Chandler Bing + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[3] + value: Ross Geller + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[4] + value: Monica Geller + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[5] + value: Phoebe Buffay + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[6] + value: Janice Hosenstein + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[7] + value: Gunther + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[8] + value: Roy, the Stripper + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: Elements.Array.data[9] + value: Ursula Buffay + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760798, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_Name + value: Topic2 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalPosition.x + value: 591 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalPosition.y + value: -10.900024 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalPosition.z + value: -188.99962 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1499098757547953156, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalScale.x + value: 4.2102113 + objectReference: {fileID: 0} + - target: {fileID: 1499098757669286102, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_Text + value: Category + objectReference: {fileID: 0} + - target: {fileID: 1499098758628412651, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_LocalScale.x + value: -3.2209778 + objectReference: {fileID: 0} + - target: {fileID: 7182421569596414056, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7985489786620569223, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: + - {fileID: 1499098757095760768, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + m_SourcePrefab: {fileID: 100100000, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} +--- !u!4 &785169905 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 1499098757095760799, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + m_PrefabInstance: {fileID: 785169904} + m_PrefabAsset: {fileID: 0} +--- !u!1 &1225785571 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1225785572} + - component: {fileID: 1225785574} + - component: {fileID: 1225785573} + m_Layer: 5 + m_Name: Title + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1225785572 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1225785571} + 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_Children: [] + m_Father: {fileID: 107001399} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 233.5} + m_SizeDelta: {x: 167.5, y: 231.1} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1225785573 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1225785571} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0, g: 0.4462726, 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_FontData: + m_Font: {fileID: 12800000, guid: b46f1d3bdf627d645a08de1c3a257a10, type: 3} + m_FontSize: 115 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 3 + m_MaxSize: 300 + m_Alignment: 1 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 + m_LineSpacing: 1 + m_Text: 'Round 1 + + Pick a Topic' +--- !u!222 &1225785574 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1225785571} + m_CullTransparentMesh: 1 +--- !u!1 &1252190028 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1252190031} + - component: {fileID: 1252190030} + - component: {fileID: 1252190029} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1252190029 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1252190028} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &1252190030 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1252190028} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &1252190031 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1252190028} + 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_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1439945299 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1439945302} + - component: {fileID: 1439945301} + - component: {fileID: 1439945300} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1439945300 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1439945299} + m_Enabled: 1 +--- !u!20 &1439945301 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1439945299} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 1 + orthographic size: 537.24 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1439945302 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1439945299} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 960, y: 540, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1641253471 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1641253473} + - component: {fileID: 1641253472} + m_Layer: 0 + m_Name: TopicSelect + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1641253472 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1641253471} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0a576bc4a288add46aa64939a69432e5, type: 3} + m_Name: + m_EditorClassIdentifier: + _topic1Box: {fileID: 1797572950} + _topic2Box: {fileID: 330129967} + _title: {fileID: 1225785573} +--- !u!4 &1641253473 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1641253471} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 328.70825, y: 532.0139, z: -188.99962} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1666960087 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1666960088} + - component: {fileID: 1666960091} + - component: {fileID: 1666960090} + - component: {fileID: 1666960089} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1666960088 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1666960087} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_Children: + - {fileID: 107001399} + - {fileID: 1682087380} + - {fileID: 1929977604} + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!114 &1666960089 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1666960087} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &1666960090 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1666960087} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 0 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &1666960091 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1666960087} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 + m_AdditionalShaderChannelsFlag: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!1 &1682087379 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1682087380} + m_Layer: 5 + m_Name: Categories + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1682087380 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1682087379} + 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_Children: + - {fileID: 302674578} + - {fileID: 785169905} + m_Father: {fileID: 1666960088} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1797572948 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1499098757095760798, guid: f3f23d9506e39c54cbd07779c62329a3, type: 3} + m_PrefabInstance: {fileID: 302674577} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1797572950 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1797572948} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ae3cf3ee1d381b544985a421e4ecbc64, type: 3} + m_Name: + m_EditorClassIdentifier: + Name: + TopicData: + Topic: + Categories: [] +--- !u!1 &1929977603 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1929977604} + m_Layer: 5 + m_Name: Players + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1929977604 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1929977603} + 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_Children: + - {fileID: 554720354} + m_Father: {fileID: 1666960088} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &9049015332794659158 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 1929977604} + m_Modifications: + - target: {fileID: 9049015333299688696, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_Text + value: + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338377, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: _team + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338378, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_Mass + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338378, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_Constraints + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338381, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_Name + value: Player Light Blue + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_SizeDelta.x + value: 157 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_SizeDelta.y + value: 164 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_AnchoredPosition.y + value: 657.99994 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9049015333349338420, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 56b5ab1b6ee02794ab9664e282d1930a, type: 3} diff --git a/namedropper/Assets/Scenes/CategorySelect.unity.meta b/namedropper/Assets/Scenes/CategorySelect.unity.meta new file mode 100644 index 0000000..25e8ec7 --- /dev/null +++ b/namedropper/Assets/Scenes/CategorySelect.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 91a4af9a6af9fc840b522128085513da +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/namedropper/Assets/Scripts/Game.cs b/namedropper/Assets/Scripts/Game.cs index 08609b0..185515d 100644 --- a/namedropper/Assets/Scripts/Game.cs +++ b/namedropper/Assets/Scripts/Game.cs @@ -1,8 +1,6 @@ using UnityEngine; using UnityEngine.UI; -using System.IO; -using YamlDotNet.Serialization; -using YamlDotNet.Serialization.NamingConventions; + using UnityEngine.SceneManagement; public class Game : MonoBehaviour @@ -14,27 +12,15 @@ public class Game : MonoBehaviour [SerializeField] Text RedScoreCounter; Category[] _categories; - GameData _gameData = new GameData(); - // Start is called before the first frame update void Awake() { - Deserializer deserializer = new Deserializer(); - string yamlText = File.ReadAllText(Application.dataPath + "/Resources/categories.yaml"); - _gameData = deserializer.Deserialize(yamlText); - _categories = FindObjectsOfType(); - int topicIndex = Random.Range(0, _gameData.Topics.Count); - TopicData topicData = _gameData.Topics[topicIndex]; - _gameData.Topics.RemoveAt(topicIndex); - foreach (Category category in _categories) { - int categoryIndex = Random.Range(0, topicData.Categories.Count); - CategoryData categoryData = topicData.Categories[categoryIndex]; - topicData.Categories.RemoveAt(categoryIndex); + CategoryData categoryData = GameDataManager.Instance.GetRandomCategoryData(GameDataManager.Instance.CurrentTopic); category.Name = categoryData.Category; category.Elements = categoryData.Elements; @@ -42,61 +28,6 @@ public class Game : MonoBehaviour } } - - /* - void OldUnusedDataGenerator() - { - - TopicData td = new TopicData(); - td.Topic = "TV"; - - CategoryData cd = new CategoryData(); - cd.Category = "White Lotus"; - cd.Elements.Add("Tanya"); - cd.Elements.Add("Portia"); - td.Categories.Add(cd); - - cd = new CategoryData(); - cd.Category = "SNL"; - cd.Elements.Add("Pete"); - cd.Elements.Add("Josh"); - td.Categories.Add(cd); - - _gameData.Data.Add(td); - - // - td = new TopicData(); - td.Topic = "Hip Hop"; - - cd = new CategoryData(); - cd.Category = "Biggie"; - cd.Elements.Add("Ready to Die"); - cd.Elements.Add("Juicy"); - td.Categories.Add(cd); - - cd = new CategoryData(); - cd.Category = "Pac"; - cd.Elements.Add("All Eyez"); - cd.Elements.Add("HIt Em Up"); - td.Categories.Add(cd); - - _gameData.Data.Add(td); - - var serializer = new SerializerBuilder() - .WithNamingConvention(CamelCaseNamingConvention.Instance) - .Build(); - - string yaml = serializer.Serialize(_gameData); - Debug.Log("Game data: " + yaml); - - string json = JsonUtility.ToJson(_gameData, true); - Debug.Log("Game data: " + json); - - File.WriteAllText(Application.persistentDataPath + "/categories.json", json); - File.WriteAllText(Application.persistentDataPath + "/categories.yaml", yaml); - } - */ - private void Start() { UpdateScores(); diff --git a/namedropper/Assets/Scripts/GameDataManager.cs b/namedropper/Assets/Scripts/GameDataManager.cs new file mode 100644 index 0000000..a305cad --- /dev/null +++ b/namedropper/Assets/Scripts/GameDataManager.cs @@ -0,0 +1,51 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using YamlDotNet.Serialization; +using YamlDotNet.Serialization.NamingConventions; +using System.IO; + +public class GameDataManager { + private static GameDataManager _instance = null; + + GameData _gameData = new GameData(); + TopicData _currentTopic = null; + + public GameDataManager() { + Deserializer deserializer = new Deserializer(); + string yamlText = File.ReadAllText(Application.dataPath + "/Resources/categories.yaml"); + _gameData = deserializer.Deserialize(yamlText); + } + + public TopicData GetRandomTopicData() + { + int topicIndex = Random.Range(0, _gameData.Topics.Count); + TopicData topicData = _gameData.Topics[topicIndex]; + _gameData.Topics.RemoveAt(topicIndex); + + return topicData; + } + + public CategoryData GetRandomCategoryData(TopicData topicData) + { + int categoryIndex = Random.Range(0, topicData.Categories.Count); + CategoryData categoryData = topicData.Categories[categoryIndex]; + topicData.Categories.RemoveAt(categoryIndex); + + return categoryData; + } + + public static GameDataManager Instance + { + get + { + if (_instance == null) + { + _instance =new GameDataManager(); + } + return _instance; + } + } + + public TopicData CurrentTopic { get => _currentTopic; set => _currentTopic = value; } +} diff --git a/namedropper/Assets/Scripts/GameDataManager.cs.meta b/namedropper/Assets/Scripts/GameDataManager.cs.meta new file mode 100644 index 0000000..01faa79 --- /dev/null +++ b/namedropper/Assets/Scripts/GameDataManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 24a77fac7c75b804da62577166dfd0a4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/namedropper/Assets/Scripts/Player.cs b/namedropper/Assets/Scripts/Player.cs index 28f2c3b..3e0e018 100644 --- a/namedropper/Assets/Scripts/Player.cs +++ b/namedropper/Assets/Scripts/Player.cs @@ -2,10 +2,10 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; - +using UnityEngine.SceneManagement; public class Player : MonoBehaviour { - const float SPEED = 1200f; + const float SPEED = 1500f; [SerializeField] KeyCode _keyLeft; [SerializeField] KeyCode _keyRight; [SerializeField] KeyCode _keyDown; @@ -44,21 +44,30 @@ public class Player : MonoBehaviour { Category category = collision.gameObject.GetComponent(); - if (category == null) - return; - - if (category.Elements.Contains(_text.text)) + if (category != null) { - _game.AddScore(_team); - category.ShowFeedbackGood(); + + if (category.Elements.Contains(_text.text)) + { + _game.AddScore(_team); + category.ShowFeedbackGood(); + } + else + { + category.ShowFeedbackBad(); + } + + transform.position = _originalPosition; + PickNewWord(); } - else + + TopicBox topicBox = collision.gameObject.GetComponent(); + + if (topicBox != null) { - category.ShowFeedbackBad(); + GameDataManager.Instance.CurrentTopic = topicBox.TopicData; + SceneManager.LoadScene("Game"); } - - transform.position = _originalPosition; - PickNewWord(); } // Update is called once per frame diff --git a/namedropper/Assets/Scripts/TopicBox.cs b/namedropper/Assets/Scripts/TopicBox.cs new file mode 100644 index 0000000..e3d4746 --- /dev/null +++ b/namedropper/Assets/Scripts/TopicBox.cs @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class TopicBox : MonoBehaviour +{ + public string Name; + public TopicData TopicData; + // Start is called before the first frame update + void Start() + { + transform.Find("Text").GetComponent().text = Name; + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/namedropper/Assets/Scripts/TopicBox.cs.meta b/namedropper/Assets/Scripts/TopicBox.cs.meta new file mode 100644 index 0000000..615adeb --- /dev/null +++ b/namedropper/Assets/Scripts/TopicBox.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ae3cf3ee1d381b544985a421e4ecbc64 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/namedropper/Assets/Scripts/TopicSelect.cs b/namedropper/Assets/Scripts/TopicSelect.cs new file mode 100644 index 0000000..1366011 --- /dev/null +++ b/namedropper/Assets/Scripts/TopicSelect.cs @@ -0,0 +1,37 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; +using UnityEngine.SceneManagement; +public class TopicSelect : MonoBehaviour +{ + [SerializeField] TopicBox _topic1Box; + [SerializeField] TopicBox _topic2Box; + [SerializeField] Text _title; + + int round = 1; + // Start is called before the first frame update + void Awake() + { + InitRound(); + } + + void InitRound() + { + _title.text = "Round " + round + "\nPick a Topic!"; + _topic1Box.TopicData = GameDataManager.Instance.GetRandomTopicData(); + _topic2Box.TopicData = GameDataManager.Instance.GetRandomTopicData(); + _topic1Box.Name = _topic1Box.TopicData.Topic; + _topic2Box.Name = _topic2Box.TopicData.Topic; + } + + // Update is called once per frame + void Update() + { + if (Input.GetKeyDown(KeyCode.R)) + { + SceneManager.LoadScene(SceneManager.GetActiveScene().name); + } + + } +} diff --git a/namedropper/Assets/Scripts/TopicSelect.cs.meta b/namedropper/Assets/Scripts/TopicSelect.cs.meta new file mode 100644 index 0000000..44a2437 --- /dev/null +++ b/namedropper/Assets/Scripts/TopicSelect.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0a576bc4a288add46aa64939a69432e5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/namedropper/ProjectSettings/EditorBuildSettings.asset b/namedropper/ProjectSettings/EditorBuildSettings.asset index 82ab0f5..ec08eb4 100644 --- a/namedropper/ProjectSettings/EditorBuildSettings.asset +++ b/namedropper/ProjectSettings/EditorBuildSettings.asset @@ -5,7 +5,13 @@ EditorBuildSettings: m_ObjectHideFlags: 0 serializedVersion: 2 m_Scenes: + - enabled: 0 + path: + guid: 00000000000000000000000000000000 - enabled: 1 - path: Assets/Scenes/SampleScene.unity - guid: 2cda990e2423bbf4892e6590ba056729 + path: Assets/Scenes/CategorySelect.unity + guid: 91a4af9a6af9fc840b522128085513da + - enabled: 1 + path: Assets/Scenes/Game.unity + guid: fc389e04780671f498562f1d56f81afb m_configObjects: {}