Working card system

This commit is contained in:
Michal Adam Pikulski
2025-10-20 16:33:18 +02:00
parent 83b5c8994d
commit 3e833b8991
18 changed files with 485 additions and 339 deletions

View File

@@ -88,7 +88,6 @@ GameObject:
m_Component:
- component: {fileID: 8941221421597332096}
- component: {fileID: 418545990734724097}
- component: {fileID: 8234492749045289478}
m_Layer: 5
m_Name: CardRevealContainer
m_TagString: Untagged
@@ -116,7 +115,7 @@ RectTransform:
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: 0, y: 0}
m_SizeDelta: {x: 700, y: 300}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &418545990734724097
MonoBehaviour:
@@ -139,25 +138,11 @@ MonoBehaviour:
m_Spacing: 50
m_ChildForceExpandWidth: 1
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 0
m_ChildControlHeight: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 1
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ReverseArrangement: 0
--- !u!114 &8234492749045289478
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3540414444069180921}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.ContentSizeFitter
m_HorizontalFit: 2
m_VerticalFit: 2
--- !u!1 &4219171218593530538
GameObject:
m_ObjectHideFlags: 0
@@ -351,7 +336,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &7186235186651138941
RectTransform:
m_ObjectHideFlags: 0
@@ -1056,6 +1041,10 @@ PrefabInstance:
propertyPath: m_Name
value: CardBack
objectReference: {fileID: 0}
- target: {fileID: 1385409402919571665, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
@@ -1070,7 +1059,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMin.x
@@ -1078,15 +1067,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.x
value: 150
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.y
value: 200
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_LocalPosition.x
@@ -1118,11 +1107,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 100
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -150
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
@@ -1136,6 +1125,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6372631110979469063, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
@@ -1158,6 +1151,10 @@ PrefabInstance:
propertyPath: m_Name
value: CardBack3
objectReference: {fileID: 0}
- target: {fileID: 1385409402919571665, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
@@ -1172,7 +1169,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMin.x
@@ -1180,15 +1177,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.x
value: 150
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.y
value: 200
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_LocalPosition.x
@@ -1220,11 +1217,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 600
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -150
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
@@ -1238,6 +1235,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6372631110979469063, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
@@ -1260,6 +1261,10 @@ PrefabInstance:
propertyPath: m_Name
value: CardBack2
objectReference: {fileID: 0}
- target: {fileID: 1385409402919571665, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
@@ -1274,7 +1279,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMin.x
@@ -1282,15 +1287,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.x
value: 150
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.y
value: 200
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_LocalPosition.x
@@ -1322,11 +1327,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 350
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -150
objectReference: {fileID: 0}
- target: {fileID: 4459518969173100332, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
@@ -1340,6 +1345,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6372631110979469063, guid: 1d048f366a1113d4ab16b5d332bfc11d, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []