diff --git a/Assets/Scenes/LearningScene.unity b/Assets/Scenes/LearningScene.unity index d00a939..f373652 100644 --- a/Assets/Scenes/LearningScene.unity +++ b/Assets/Scenes/LearningScene.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -134,6 +134,7 @@ GameObject: - component: {fileID: 1697758390} - component: {fileID: 1697758389} - component: {fileID: 1697758388} + - component: {fileID: 1697758391} m_Layer: 0 m_Name: Main Camera m_TagString: MainCamera @@ -206,6 +207,19 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1697758391 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1697758387} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a760d74805c860b4f86ab083e4457a5b, type: 3} + m_Name: + m_EditorClassIdentifier: + learningScenesUI: [] --- !u!1 &1950143430 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/TenPoints.unity b/Assets/Scenes/TenPoints.unity index a91696d..228ad52 100644 --- a/Assets/Scenes/TenPoints.unity +++ b/Assets/Scenes/TenPoints.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -123,6 +123,222 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1 &220812418 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 220812419} + - component: {fileID: 220812421} + - component: {fileID: 220812420} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &220812419 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 220812418} + 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: 1734678667} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 198.7} + m_SizeDelta: {x: 0, y: 372.53} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &220812420 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 220812418} + 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: 21300000, guid: 7d5fed89373a0dc4abd206e2f414ffed, type: 3} + m_Type: 0 + 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 &220812421 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 220812418} + m_CullTransparentMesh: 1 +--- !u!1 &487568647 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 487568648} + - component: {fileID: 487568650} + - component: {fileID: 487568649} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &487568648 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 487568647} + 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: 1734678667} + 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: 1000, y: 1100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &487568649 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 487568647} + 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: 21300000, guid: 0896d803db433ce46bb149f8d5980224, type: 3} + m_Type: 0 + 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 &487568650 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 487568647} + m_CullTransparentMesh: 1 +--- !u!1 &597110091 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 597110094} + - component: {fileID: 597110093} + - component: {fileID: 597110092} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &597110092 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 597110091} + 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 &597110093 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 597110091} + 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 &597110094 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 597110091} + 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: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &860622659 GameObject: m_ObjectHideFlags: 0 @@ -227,6 +443,8 @@ GameObject: - component: {fileID: 1075338027} - component: {fileID: 1075338026} - component: {fileID: 1075338025} + - component: {fileID: 1075338028} + - component: {fileID: 1075338029} m_Layer: 0 m_Name: Main Camera m_TagString: MainCamera @@ -299,3 +517,491 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1075338028 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1075338024} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 371541189af416c47ae33e0046cd4291, type: 3} + m_Name: + m_EditorClassIdentifier: + activeButton: {fileID: 0} + _spawnerHint: {fileID: 8626876655442865689, guid: a7b304c08b9d7434397cbcb41be10391, type: 3} + _hintUi: {fileID: 596106376145155034, guid: 3160771acd9895c41bbe853486b87470, type: 3} +--- !u!114 &1075338029 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1075338024} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2de2cfdcea2fcfb47be51e048fdcf8fc, type: 3} + m_Name: + m_EditorClassIdentifier: + _uncheckedButton: {fileID: 8459364532942365280, guid: 3e1875ed5e0549349a703116bdf218fe, type: 3} + _checkedButton: {fileID: 8301818820257411171, guid: bbdd056ecf03534439f1562453e741b7, type: 3} +--- !u!1 &1225164463 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1225164464} + - component: {fileID: 1225164466} + - component: {fileID: 1225164465} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1225164464 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1225164463} + 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: 1734678667} + m_RootOrder: 0 + 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 &1225164465 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1225164463} + 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: 21300000, guid: 2e6551b0b968fbc459b5325563e95236, type: 3} + m_Type: 0 + 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 &1225164466 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1225164463} + m_CullTransparentMesh: 1 +--- !u!1 &1280311250 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1280311251} + - component: {fileID: 1280311253} + - component: {fileID: 1280311252} + m_Layer: 5 + m_Name: Image + m_TagString: tenpoints_startpos + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1280311251 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1280311250} + 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: 1734678667} + m_RootOrder: 4 + 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: 225, y: 200} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1280311252 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1280311250} + 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: 0} + m_Type: 0 + 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 &1280311253 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1280311250} + m_CullTransparentMesh: 1 +--- !u!1 &1407917303 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1407917304} + - component: {fileID: 1407917306} + - component: {fileID: 1407917305} + m_Layer: 5 + m_Name: Image + m_TagString: tenpoints_tagget + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1407917304 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1407917303} + 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: 1734678667} + m_RootOrder: 6 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 360} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1407917305 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1407917303} + 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: 0} + m_Type: 0 + 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 &1407917306 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1407917303} + m_CullTransparentMesh: 1 +--- !u!1 &1734678663 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1734678667} + - component: {fileID: 1734678666} + - component: {fileID: 1734678665} + - component: {fileID: 1734678664} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1734678664 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1734678663} + 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 &1734678665 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1734678663} + 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 &1734678666 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1734678663} + 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!224 &1734678667 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1734678663} + 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: 1225164464} + - {fileID: 1870994620} + - {fileID: 487568648} + - {fileID: 220812419} + - {fileID: 1280311251} + - {fileID: 1849721964} + - {fileID: 1407917304} + m_Father: {fileID: 0} + m_RootOrder: 2 + 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!1 &1849721963 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1849721964} + - component: {fileID: 1849721965} + m_Layer: 5 + m_Name: selected_point_spawner + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1849721964 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1849721963} + 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: 1734678667} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 119.9, y: 274} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1849721965 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1849721963} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cc25c2ebea682fb4bbca72e0394f772b, type: 3} + m_Name: + m_EditorClassIdentifier: + activePoint: {fileID: 2220524135673857055, guid: 35e5251849225924a9fd142fc8375ecb, type: 3} +--- !u!1 &1870994619 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1870994620} + - component: {fileID: 1870994622} + - component: {fileID: 1870994621} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1870994620 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1870994619} + 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: 1734678667} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 0, y: -68.31} + m_SizeDelta: {x: 490.0518, y: 78.53699} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1870994621 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1870994619} + 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: 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_FontData: + m_Font: {fileID: 12800000, guid: be643c0c6aa10b54f849c7fa2b29a222, type: 3} + m_FontSize: 49 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 10 + m_MaxSize: 49 + m_Alignment: 0 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: "\u0420\u0430\u0441\u0441\u0442\u0430\u0432\u044C 10 \u0442\u043E\u0447\u0435\u043A" +--- !u!222 &1870994622 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1870994619} + m_CullTransparentMesh: 1 diff --git a/Assets/images/button/cross_button.png b/Assets/images/button/cross_button.png new file mode 100644 index 0000000..0f1cf79 Binary files /dev/null and b/Assets/images/button/cross_button.png differ diff --git a/Assets/images/button/cross_button.png.meta b/Assets/images/button/cross_button.png.meta new file mode 100644 index 0000000..5c70523 --- /dev/null +++ b/Assets/images/button/cross_button.png.meta @@ -0,0 +1,120 @@ +fileFormatVersion: 2 +guid: 75c84d33de661d348a3c1fcfd45f45df +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: 1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/images/buttonHint.meta b/Assets/images/buttonHint.meta new file mode 100644 index 0000000..5208d4c --- /dev/null +++ b/Assets/images/buttonHint.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e281ce108f74e634d94204389f48599d +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/images/buttonHint/button_hint.png b/Assets/images/buttonHint/button_hint.png new file mode 100644 index 0000000..48bf643 Binary files /dev/null and b/Assets/images/buttonHint/button_hint.png differ diff --git a/Assets/images/buttonHint/button_hint.png.meta b/Assets/images/buttonHint/button_hint.png.meta new file mode 100644 index 0000000..1266504 --- /dev/null +++ b/Assets/images/buttonHint/button_hint.png.meta @@ -0,0 +1,120 @@ +fileFormatVersion: 2 +guid: 77f601a2a81ea5a488b6f273b5722311 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/images/buttonHint/hint_for_button_spawner.png b/Assets/images/buttonHint/hint_for_button_spawner.png new file mode 100644 index 0000000..3f973c5 Binary files /dev/null and b/Assets/images/buttonHint/hint_for_button_spawner.png differ diff --git a/Assets/images/buttonHint/hint_for_button_spawner.png.meta b/Assets/images/buttonHint/hint_for_button_spawner.png.meta new file mode 100644 index 0000000..bcf1967 --- /dev/null +++ b/Assets/images/buttonHint/hint_for_button_spawner.png.meta @@ -0,0 +1,120 @@ +fileFormatVersion: 2 +guid: 195a30488aef2e74e924fd14eaa720a9 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: -1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/LearnSystem.meta b/Assets/prefabs/LearnSystem.meta new file mode 100644 index 0000000..8dc75ff --- /dev/null +++ b/Assets/prefabs/LearnSystem.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3c64c65766e52454cbb021a3e732048b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/LearnSystem/ButtonHint.prefab b/Assets/prefabs/LearnSystem/ButtonHint.prefab new file mode 100644 index 0000000..f3cd918 --- /dev/null +++ b/Assets/prefabs/LearnSystem/ButtonHint.prefab @@ -0,0 +1,77 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &596106376145155034 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8168493928747377980} + - component: {fileID: 4238815537109945382} + - component: {fileID: 5050871265387107485} + m_Layer: 5 + m_Name: ButtonHint + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8168493928747377980 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 596106376145155034} + 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: 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!222 &4238815537109945382 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 596106376145155034} + m_CullTransparentMesh: 1 +--- !u!114 &5050871265387107485 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 596106376145155034} + 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: 21300000, guid: 77f601a2a81ea5a488b6f273b5722311, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 diff --git a/Assets/prefabs/LearnSystem/ButtonHint.prefab.meta b/Assets/prefabs/LearnSystem/ButtonHint.prefab.meta new file mode 100644 index 0000000..5e26407 --- /dev/null +++ b/Assets/prefabs/LearnSystem/ButtonHint.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3160771acd9895c41bbe853486b87470 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/tenPoints.meta b/Assets/prefabs/tenPoints.meta new file mode 100644 index 0000000..c0c0029 --- /dev/null +++ b/Assets/prefabs/tenPoints.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: daacd9a42ba0f3c46ac9d5b71494ce3f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/tenPoints/active_point.prefab b/Assets/prefabs/tenPoints/active_point.prefab new file mode 100644 index 0000000..0314190 --- /dev/null +++ b/Assets/prefabs/tenPoints/active_point.prefab @@ -0,0 +1,90 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &8301818820257411171 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8301818820257411168} + - component: {fileID: 8301818820257411174} + - component: {fileID: 8301818820257411169} + - component: {fileID: 8301818820257411175} + m_Layer: 5 + m_Name: active_point + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8301818820257411168 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8301818820257411171} + 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: 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: -130, y: -418} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &8301818820257411174 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8301818820257411171} + m_CullTransparentMesh: 1 +--- !u!114 &8301818820257411169 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8301818820257411171} + 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: 21300000, guid: 75c84d33de661d348a3c1fcfd45f45df, type: 3} + m_Type: 0 + 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!114 &8301818820257411175 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8301818820257411171} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a6bc3be19157d794a84849910d162f85, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/prefabs/tenPoints/active_point.prefab.meta b/Assets/prefabs/tenPoints/active_point.prefab.meta new file mode 100644 index 0000000..9094877 --- /dev/null +++ b/Assets/prefabs/tenPoints/active_point.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: bbdd056ecf03534439f1562453e741b7 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/tenPoints/button_hint.prefab b/Assets/prefabs/tenPoints/button_hint.prefab new file mode 100644 index 0000000..ceefc34 --- /dev/null +++ b/Assets/prefabs/tenPoints/button_hint.prefab @@ -0,0 +1,77 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &8982081314524905066 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5908759551603847044} + - component: {fileID: 5980124875629449912} + - component: {fileID: 4576196652099376608} + m_Layer: 5 + m_Name: button_hint + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5908759551603847044 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8982081314524905066} + 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: 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!222 &5980124875629449912 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8982081314524905066} + m_CullTransparentMesh: 1 +--- !u!114 &4576196652099376608 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8982081314524905066} + 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: 21300000, guid: 77f601a2a81ea5a488b6f273b5722311, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 diff --git a/Assets/prefabs/tenPoints/button_hint.prefab.meta b/Assets/prefabs/tenPoints/button_hint.prefab.meta new file mode 100644 index 0000000..86c875c --- /dev/null +++ b/Assets/prefabs/tenPoints/button_hint.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 4fa79c6cd3d93b54081b0fd873902e92 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/tenPoints/button_spawner_hint.prefab b/Assets/prefabs/tenPoints/button_spawner_hint.prefab new file mode 100644 index 0000000..7d3f852 --- /dev/null +++ b/Assets/prefabs/tenPoints/button_spawner_hint.prefab @@ -0,0 +1,77 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &8626876655442865689 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8918692066023906514} + - component: {fileID: 8749943711640541856} + - component: {fileID: 546082819459324610} + m_Layer: 5 + m_Name: button_spawner_hint + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8918692066023906514 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8626876655442865689} + 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: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -1.5723267, y: 198.70001} + m_SizeDelta: {x: -37.7374, y: 372.53} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &8749943711640541856 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8626876655442865689} + m_CullTransparentMesh: 1 +--- !u!114 &546082819459324610 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8626876655442865689} + 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: 21300000, guid: 195a30488aef2e74e924fd14eaa720a9, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 diff --git a/Assets/prefabs/tenPoints/button_spawner_hint.prefab.meta b/Assets/prefabs/tenPoints/button_spawner_hint.prefab.meta new file mode 100644 index 0000000..f045358 --- /dev/null +++ b/Assets/prefabs/tenPoints/button_spawner_hint.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a7b304c08b9d7434397cbcb41be10391 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/tenPoints/disable_point1.prefab b/Assets/prefabs/tenPoints/disable_point1.prefab new file mode 100644 index 0000000..4684300 --- /dev/null +++ b/Assets/prefabs/tenPoints/disable_point1.prefab @@ -0,0 +1,77 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &8459364532942365280 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8459364532942365087} + - component: {fileID: 8459364532942365085} + - component: {fileID: 8459364532942365086} + m_Layer: 5 + m_Name: disable_point1 + m_TagString: tenpoints_disabled + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &8459364532942365087 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8459364532942365280} + 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: 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: -75, y: 186} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &8459364532942365085 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8459364532942365280} + m_CullTransparentMesh: 1 +--- !u!114 &8459364532942365086 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8459364532942365280} + 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: 21300000, guid: f2cd82c10e985f54ba6e3a14913ae9c2, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 diff --git a/Assets/prefabs/tenPoints/disable_point1.prefab.meta b/Assets/prefabs/tenPoints/disable_point1.prefab.meta new file mode 100644 index 0000000..f65b518 --- /dev/null +++ b/Assets/prefabs/tenPoints/disable_point1.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3e1875ed5e0549349a703116bdf218fe +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/tenPoints/fakeActiveButton.prefab b/Assets/prefabs/tenPoints/fakeActiveButton.prefab new file mode 100644 index 0000000..a31c134 --- /dev/null +++ b/Assets/prefabs/tenPoints/fakeActiveButton.prefab @@ -0,0 +1,91 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &2220524135673857055 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 150836083279323760} + - component: {fileID: 4824116478166558045} + - component: {fileID: 1267749362995604596} + - component: {fileID: 2748994505983915130} + m_Layer: 5 + m_Name: fakeActiveButton + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &150836083279323760 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2220524135673857055} + 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: 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!222 &4824116478166558045 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2220524135673857055} + m_CullTransparentMesh: 1 +--- !u!114 &1267749362995604596 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2220524135673857055} + 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: 21300000, guid: 75c84d33de661d348a3c1fcfd45f45df, type: 3} + m_Type: 0 + 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!114 &2748994505983915130 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2220524135673857055} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 11dc6f4cec35a90408df1833b58f54b3, type: 3} + m_Name: + m_EditorClassIdentifier: + _notFakeButton: {fileID: 8301818820257411175, guid: bbdd056ecf03534439f1562453e741b7, type: 3} diff --git a/Assets/prefabs/tenPoints/fakeActiveButton.prefab.meta b/Assets/prefabs/tenPoints/fakeActiveButton.prefab.meta new file mode 100644 index 0000000..5cb9b31 --- /dev/null +++ b/Assets/prefabs/tenPoints/fakeActiveButton.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 35e5251849225924a9fd142fc8375ecb +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/tenPoints.meta b/Assets/scripts/tenPoints.meta new file mode 100644 index 0000000..28e2080 --- /dev/null +++ b/Assets/scripts/tenPoints.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 96cf474a6ee213d4d868819c5e6a8e87 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/tenPoints/BaseButtonHandler.cs b/Assets/scripts/tenPoints/BaseButtonHandler.cs new file mode 100644 index 0000000..074a64e --- /dev/null +++ b/Assets/scripts/tenPoints/BaseButtonHandler.cs @@ -0,0 +1,6 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class BaseButtonHandler : MonoBehaviour{ +} diff --git a/Assets/scripts/tenPoints/BaseButtonHandler.cs.meta b/Assets/scripts/tenPoints/BaseButtonHandler.cs.meta new file mode 100644 index 0000000..2462f59 --- /dev/null +++ b/Assets/scripts/tenPoints/BaseButtonHandler.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2f32b554332d2de4691649b762334547 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/tenPoints/CellSpawnAndOperate.cs b/Assets/scripts/tenPoints/CellSpawnAndOperate.cs new file mode 100644 index 0000000..22d253b --- /dev/null +++ b/Assets/scripts/tenPoints/CellSpawnAndOperate.cs @@ -0,0 +1,77 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class CellSpawnAndOperate : MonoBehaviour +{ + private GameObjectWithFlag[,] _checkedMatrix = new GameObjectWithFlag[4, 4]; + [SerializeField] + private GameObject _uncheckedButton; + [SerializeField] + private GameObject _checkedButton; + private Canvas uiParent; + private GameObject tagget; + void Start() { + Vector3 startPos = GameObject.FindGameObjectWithTag("tenpoints_startpos").transform.position; + tagget = GameObject.FindGameObjectWithTag("tenpoints_tagget"); + uiParent = Object.FindObjectOfType(); + for (int i = 0; i < 4; ++i) { + for (int j = 0; j < 4; ++j) { + Vector3 pos = new Vector3( + startPos.x - 150 * i, + startPos.y - 150 * j, + 0 + ); + _checkedMatrix[i, j] = new GameObjectWithFlag(Instantiate(_uncheckedButton, Vector3.zero, Quaternion.identity), false); + _checkedMatrix[i, j].gameObject.transform.SetParent(uiParent.transform); + _checkedMatrix[i, j].gameObject.transform.position = pos; + _checkedMatrix[i, j].gameObject.transform.SetSiblingIndex(4); + } + } + } + public void checkButton(Vector3 position) { + operateOnButton(position, true); + } + public void uncheckButton(Vector3 position) { + operateOnButton(position, false); + } + public List getNotCheckedButtons() { + List result = new List(); + for (int i = 0; i < 4; ++i) { + for (int j = 0; j < 4; ++j) { + if (_checkedMatrix[i, j].isChecked == false) { + result.Add(_checkedMatrix[i, j].gameObject); + } + } + } + result.Add(tagget); + return result; + } + void operateOnButton(Vector3 position, bool check) { + for (int i = 0; i < 4; ++i) { + for (int j = 0; j < 4; ++j) { + if (_checkedMatrix[i, j].gameObject.transform.position == position) { + _checkedMatrix[i, j].isChecked = check; + if (check){ + Destroy(_checkedMatrix[i, j].gameObject); + } + _checkedMatrix[i, j].gameObject = Instantiate(check ? _checkedButton : _uncheckedButton, position, Quaternion.identity); + if (check) { + _checkedMatrix[i, j].gameObject.GetComponent()._isInCell = true; + } + _checkedMatrix[i, j].gameObject.transform.SetParent(uiParent.gameObject.transform); + _checkedMatrix[i, j].gameObject.transform.SetSiblingIndex(4); + } + } + } + } +} + +struct GameObjectWithFlag { + public GameObject gameObject; + public bool isChecked; + public GameObjectWithFlag(GameObject gameObject, bool isChecked) { + this.gameObject = gameObject; + this.isChecked = isChecked; + } +} diff --git a/Assets/scripts/tenPoints/CellSpawnAndOperate.cs.meta b/Assets/scripts/tenPoints/CellSpawnAndOperate.cs.meta new file mode 100644 index 0000000..bf5a4cf --- /dev/null +++ b/Assets/scripts/tenPoints/CellSpawnAndOperate.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2de2cfdcea2fcfb47be51e048fdcf8fc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/tenPoints/CrossButtonHandler.cs b/Assets/scripts/tenPoints/CrossButtonHandler.cs new file mode 100644 index 0000000..abe2f10 --- /dev/null +++ b/Assets/scripts/tenPoints/CrossButtonHandler.cs @@ -0,0 +1,53 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class CrossButtonHandler : MonoBehaviour +{ + private bool _mouseDown = false; + private HintSpawner _activePoint; + public bool active = false; + private CellSpawnAndOperate _cellOperator; + public bool _isInCell = false; + private activePointSpawner _pointSpawner; + public bool isSpawnerHint = false; + private GameObject _tagget; + void Start() { + _tagget = GameObject.FindGameObjectWithTag("tenpoints_tagget"); + _activePoint = GameObject.FindGameObjectWithTag("MainCamera").GetComponent(); + _cellOperator = GameObject.FindGameObjectWithTag("MainCamera").GetComponent(); + _pointSpawner = Object.FindObjectOfType(); + } + void Update() { + Debug.Log(active); + if (Input.GetMouseButtonDown(0)) { + if (Vector3.Distance(Input.mousePosition, gameObject.transform.position) < 100){ + active = true; + if (_isInCell) { + _cellOperator.uncheckButton(transform.position); + } + else { + _pointSpawner.delete(); + } + } + } + if (Input.GetMouseButtonUp(0)) { + if (active) { + active = false; + Vector3 pos = _activePoint.destroyHintAndReturnItsPosition(); + Debug.Log(pos.ToString() + _tagget.transform.position.ToString()); + if (isSpawnerHint) { + _pointSpawner.add(); + } + _activePoint.activeButton = null; + _cellOperator.checkButton(pos); + Destroy(gameObject); + } + + } + if (active) { + _activePoint.activeButton = gameObject.GetComponent(); + transform.position = Input.mousePosition; + } + } +} diff --git a/Assets/scripts/tenPoints/CrossButtonHandler.cs.meta b/Assets/scripts/tenPoints/CrossButtonHandler.cs.meta new file mode 100644 index 0000000..5264dbf --- /dev/null +++ b/Assets/scripts/tenPoints/CrossButtonHandler.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a6bc3be19157d794a84849910d162f85 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/tenPoints/FakeActiveButtonScript.cs b/Assets/scripts/tenPoints/FakeActiveButtonScript.cs new file mode 100644 index 0000000..924d3ff --- /dev/null +++ b/Assets/scripts/tenPoints/FakeActiveButtonScript.cs @@ -0,0 +1,25 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class FakeActiveButtonScript : MonoBehaviour +{ + private activePointSpawner _pointSpawner; + [SerializeField] + private CrossButtonHandler _notFakeButton; + private Canvas canvas; + void Start() { + _pointSpawner = Object.FindObjectOfType(); + canvas = Object.FindObjectOfType(); + } + void Update() { + if (Input.GetMouseButtonDown(0)) { + if(Vector3.Distance(transform.position, Input.mousePosition) < 100) { + _pointSpawner.delete(); + GameObject obj = Instantiate(_notFakeButton.gameObject, Input.mousePosition, Quaternion.identity); + obj.transform.SetParent(canvas.gameObject.transform); + obj.GetComponent().active = true; + } + } + } +} diff --git a/Assets/scripts/tenPoints/FakeActiveButtonScript.cs.meta b/Assets/scripts/tenPoints/FakeActiveButtonScript.cs.meta new file mode 100644 index 0000000..214fca9 --- /dev/null +++ b/Assets/scripts/tenPoints/FakeActiveButtonScript.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 11dc6f4cec35a90408df1833b58f54b3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/tenPoints/HintSpawner.cs b/Assets/scripts/tenPoints/HintSpawner.cs new file mode 100644 index 0000000..4a9d483 --- /dev/null +++ b/Assets/scripts/tenPoints/HintSpawner.cs @@ -0,0 +1,76 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class HintSpawner : MonoBehaviour +{ + public CrossButtonHandler activeButton; + + private CellSpawnAndOperate _cellOperator; + private GameObject _hint; + [SerializeField] + private GameObject _spawnerHint; + [SerializeField] + private GameObject _hintUi; + private int _idxBuffer = -1; + List _notCheckedButtons; + + void Start() { + _notCheckedButtons = new List(); + _cellOperator = GameObject.FindGameObjectWithTag("MainCamera").GetComponent(); + } + + int NearestGameObject() { + int idx = -1; + int counter = 0; + double minDist = Mathf.Infinity; + foreach(GameObject point in _notCheckedButtons) { + if (point == null) continue; + double dist = Vector3.Distance(point.transform.position, activeButton.transform.position); + if (dist < minDist) { + idx = counter; + minDist = dist; + } + counter++; + } + return idx; + } + void hintSpawn(int idx) { + if (idx == _notCheckedButtons.Count - 1) { + _hint = Instantiate(_spawnerHint, _spawnerHint.transform.position, Quaternion.identity); + Canvas canv = Object.FindObjectOfType(); + _hint.transform.SetParent(canv.gameObject.transform, false); + activeButton.GetComponent().isSpawnerHint = true; + } + else { + _hint = Instantiate(_hintUi, _notCheckedButtons[idx].transform.position, Quaternion.identity); + Canvas canv = Object.FindObjectOfType(); + _hint.transform.SetParent(canv.gameObject.transform); + activeButton.GetComponent().isSpawnerHint = false; + } + activeButton.transform.SetSiblingIndex(activeButton.transform.parent.childCount); + } + + void Update() { + _notCheckedButtons = _cellOperator.getNotCheckedButtons(); + if (activeButton == null) return; + int idx = NearestGameObject(); + if (_idxBuffer == idx) { + return; + } + _idxBuffer = idx; + if (_hint) { + Destroy(_hint); + } + hintSpawn(idx); + } + + public Vector3 destroyHintAndReturnItsPosition() { + Debug.Log(_hint.transform.position); + Vector3 hint_position = _hint.transform.position; + Destroy(_hint); + _hint = null; + _idxBuffer = -1; + return hint_position; + } +} diff --git a/Assets/scripts/tenPoints/HintSpawner.cs.meta b/Assets/scripts/tenPoints/HintSpawner.cs.meta new file mode 100644 index 0000000..7e28005 --- /dev/null +++ b/Assets/scripts/tenPoints/HintSpawner.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 371541189af416c47ae33e0046cd4291 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/scripts/tenPoints/activePointSpawner.cs b/Assets/scripts/tenPoints/activePointSpawner.cs new file mode 100644 index 0000000..fa1f494 --- /dev/null +++ b/Assets/scripts/tenPoints/activePointSpawner.cs @@ -0,0 +1,45 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class activePointSpawner : MonoBehaviour +{ + [SerializeField] + private GameObject activePoint; + private GameObject[] activePoints; + private Canvas ui_output; + private int length = 10; + void Start() { + ui_output = Object.FindObjectOfType(); + activePoints = new GameObject[10]; + for (int i = 0; i < 10; ++i) { + activePoints[i] = Instantiate(activePoint, + new Vector3( + transform.position.x + (135 * ((i)%7)), + transform.position.y - (135 * ((int)(i)/7)), + 0 + ), + Quaternion.identity + ); + activePoints[i].transform.SetParent(ui_output.transform); + activePoints[i].transform.parent.SetSiblingIndex(6); + } + } + + public void delete() { + length--; + Destroy(activePoints[length]); + } + public void add() { + activePoints[length] = Instantiate(activePoint, + new Vector3( + transform.position.x + (135 * ((length)%7)), + transform.position.y - (135 * ((int)(length)/7)), + 0 + ), + Quaternion.identity + ); + activePoints[length].transform.SetParent(ui_output.transform); + length++; + } +} diff --git a/Assets/scripts/tenPoints/activePointSpawner.cs.meta b/Assets/scripts/tenPoints/activePointSpawner.cs.meta new file mode 100644 index 0000000..c21df22 --- /dev/null +++ b/Assets/scripts/tenPoints/activePointSpawner.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cc25c2ebea682fb4bbca72e0394f772b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset index 9bc4fb9..d699bc7 100644 --- a/ProjectSettings/TagManager.asset +++ b/ProjectSettings/TagManager.asset @@ -11,6 +11,10 @@ TagManager: - chest - aim - ARCamera + - tenpoints_disabled + - tenpoints_startpos + - chest + - tenpoints_tagget layers: - Default - TransparentFX