Compare commits
2 Commits
main
...
card_sorti
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f8a1eb3ef | ||
|
|
96afbfb078 |
8
Assets/Prefabs/Minigames/CardQualityControl/Cards.meta
Normal file
8
Assets/Prefabs/Minigames/CardQualityControl/Cards.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a038b50a653939b44853b5799a6f9e68
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,103 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &255044085859619704
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1384381902454720507, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SortableCard1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7509179989723220838, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Sprite
|
||||
value:
|
||||
objectReference: {fileID: -987280688, guid: 9dc9328453e98284281c453fac246f7c, type: 3}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 100
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 160
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9788d529b225ddd44b92be992be99988
|
||||
guid: caab778e5a08341498fe895141ad7dd7
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
@@ -0,0 +1,103 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &255044085859619704
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1384381902454720507, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SortableCard2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7509179989723220838, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Sprite
|
||||
value:
|
||||
objectReference: {fileID: 21300000, guid: 9a5865a0aea534087b2690ec819f532d, type: 3}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 100
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 160
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 942e43abb9beaef429f3d0e7f5bb8fcc
|
||||
guid: 2a3f5cc2e7ca670459ebe1c556883c9f
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
@@ -0,0 +1,103 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &255044085859619704
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1384381902454720507, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SortableCard3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7509179989723220838, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Sprite
|
||||
value:
|
||||
objectReference: {fileID: -452916114831768378, guid: 77ab3d770c92d5344b36eee3293a0f94, type: 3}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 100
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 160
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0cc305839e3ff7843b350430206543b4
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Prefabs/Minigames/CardQualityControl/Garbage.meta
Normal file
8
Assets/Prefabs/Minigames/CardQualityControl/Garbage.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06dd27b2dfc629d4d9f3865ea19d4d86
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,99 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &8980889725416783428
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1384381902454720507, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Garbage1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 100
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 160
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8730990344497138252, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 342ae09811d1668448e141153437746d, type: 3}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 16a53235286e7a9438ec114b71ef6230
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,662 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1384381902454720507
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8730990344497138252}
|
||||
- component: {fileID: 2127389269465269351}
|
||||
- component: {fileID: 5587534902400065439}
|
||||
- component: {fileID: 7928211723630959765}
|
||||
- component: {fileID: 6730564746972857952}
|
||||
- component: {fileID: 6189457089612025521}
|
||||
m_Layer: 0
|
||||
m_Name: SortableCard
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8730990344497138252
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1384381902454720507}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.03, y: 0.03, z: 0.03}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1832493617040022640}
|
||||
- {fileID: 3435345339851500234}
|
||||
m_Father: {fileID: 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: 200, y: 270}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2127389269465269351
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1384381902454720507}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9b3db9ce867c4df884411fb3da8fd80a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.Core.SortableItem
|
||||
moveSpeed: 50
|
||||
smoothMovement: 0
|
||||
snapDuration: 0.3
|
||||
visual: {fileID: 0}
|
||||
isSelectable: 1
|
||||
selectionOffset: 50
|
||||
context: {fileID: 0}
|
||||
stateMachine: {fileID: 0}
|
||||
initialState: OnConveyorState
|
||||
--- !u!114 &5587534902400065439
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1384381902454720507}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9a9c60767eef4a3090d8bf70ee87340f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.Core.SortableItemContext
|
||||
cardDisplay: {fileID: 942985408699919073}
|
||||
garbageVisual: {fileID: 0}
|
||||
animator: {fileID: 7928211723630959765}
|
||||
visualTransform: {fileID: 3435345339851500234}
|
||||
--- !u!114 &7928211723630959765
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1384381902454720507}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5eacab725f4346d091696042b9cd2a82, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::UI.CardSystem.StateMachine.CardAnimator
|
||||
--- !u!223 &6730564746972857952
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1384381902454720507}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 2
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_VertexColorAlwaysGammaSpace: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_UpdateRectTransformForStandalone: 0
|
||||
m_SortingLayerID: -1132846201
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
--- !u!114 &6189457089612025521
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1384381902454720507}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.GraphicRaycaster
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!1 &1524887561224457495
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4915963048385449277}
|
||||
- component: {fileID: 2636359196694958052}
|
||||
m_Layer: 0
|
||||
m_Name: FellOffConveyorState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4915963048385449277
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1524887561224457495}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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!114 &2636359196694958052
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1524887561224457495}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 619a38624dcf48b19913bd4e1ac28625, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.FellOffConveyorState
|
||||
--- !u!1 &4127399957670380340
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1832493617040022640}
|
||||
- component: {fileID: 8945307576217044656}
|
||||
- component: {fileID: 8645082511974305963}
|
||||
m_Layer: 0
|
||||
m_Name: SortingStateMachine
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1832493617040022640
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4127399957670380340}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 3313403483268767269}
|
||||
- {fileID: 2639445114329646364}
|
||||
- {fileID: 6846791113334578555}
|
||||
- {fileID: 9068178704258338862}
|
||||
- {fileID: 4915963048385449277}
|
||||
- {fileID: 8379092957690634087}
|
||||
m_Father: {fileID: 8730990344497138252}
|
||||
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: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &8945307576217044656
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4127399957670380340}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 55938fb1577dd4ad3af7e994048c86f6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: PixelplacementAssembly::Pixelplacement.Initialization
|
||||
--- !u!114 &8645082511974305963
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4127399957670380340}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 87ed5616041a4d878f452a8741e1eeab, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::UI.CardSystem.StateMachine.CardStateMachine
|
||||
defaultState: {fileID: 0}
|
||||
currentState: {fileID: 0}
|
||||
_unityEventsFolded: 0
|
||||
verbose: 0
|
||||
allowReentry: 0
|
||||
returnToDefaultOnDisable: 1
|
||||
OnStateExited:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnStateEntered:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnFirstStateEntered:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnFirstStateExited:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnLastStateEntered:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnLastStateExited:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
customSaveId:
|
||||
--- !u!1 &5278071270215530147
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6846791113334578555}
|
||||
- component: {fileID: 6984415130404958205}
|
||||
m_Layer: 0
|
||||
m_Name: SortedCorrectlyState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6846791113334578555
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5278071270215530147}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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!114 &6984415130404958205
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5278071270215530147}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f3ed2e6fb0814273926c33a178bdf42b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.SortedCorrectlyState
|
||||
--- !u!1 &5979039784013227400
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 9068178704258338862}
|
||||
- component: {fileID: 4385886365713563158}
|
||||
m_Layer: 0
|
||||
m_Name: SortedIncorrectlyState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &9068178704258338862
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5979039784013227400}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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!114 &4385886365713563158
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5979039784013227400}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: edef0fb846be4fd99d396ea27dca1e4f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.SortedIncorrectlyState
|
||||
--- !u!1 &6327696013805378735
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3313403483268767269}
|
||||
- component: {fileID: 1092557656867638961}
|
||||
m_Layer: 0
|
||||
m_Name: OnConveyorState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3313403483268767269
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6327696013805378735}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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!114 &1092557656867638961
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6327696013805378735}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 17d2ba6f5aec4b698247b082734cad8f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.OnConveyorState
|
||||
--- !u!1 &7284206288927199055
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2639445114329646364}
|
||||
- component: {fileID: 3159056251950411054}
|
||||
m_Layer: 0
|
||||
m_Name: BeingDraggedState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2639445114329646364
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7284206288927199055}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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!114 &3159056251950411054
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7284206288927199055}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 015c0740240748c8901c9304490cb80d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.BeingDraggedState
|
||||
--- !u!1 &7496445430129834038
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8379092957690634087}
|
||||
- component: {fileID: 6205288184969541608}
|
||||
m_Layer: 0
|
||||
m_Name: DroppedOnFloorState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8379092957690634087
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7496445430129834038}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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!114 &6205288184969541608
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7496445430129834038}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b384e4988bf549f2b6e70d1ff0fa4bcd, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.DroppedOnFloorState
|
||||
--- !u!1001 &327057115485850371
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 8730990344497138252}
|
||||
m_Modifications:
|
||||
- target: {fileID: 790099756778783334, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 790099756778783334, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0.8335571
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 790099756778783334, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: -0.06774902
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1802458852284665438, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4210468743547155963, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5533787515014034956, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Card
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7619421269260494372, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7619421269260494372, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7619421269260494372, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7619421269260494372, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
--- !u!114 &942985408699919073 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 693510968212398562, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
m_PrefabInstance: {fileID: 327057115485850371}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 72cb26621865420aa763a66c06eb7f6d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::UI.CardSystem.CardDisplay
|
||||
--- !u!224 &3435345339851500234 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 3108957999325520329, guid: 6d6e64f153ccde149bede8e82351d3c4, type: 3}
|
||||
m_PrefabInstance: {fileID: 327057115485850371}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
@@ -1,5 +1,80 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &744540741875638405
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 811048234918810510}
|
||||
- component: {fileID: 3594868455979831009}
|
||||
- component: {fileID: 8416838007190153190}
|
||||
m_Layer: 0
|
||||
m_Name: DamageBlink
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &811048234918810510
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 744540741875638405}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4122742947624120958}
|
||||
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!222 &3594868455979831009
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 744540741875638405}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8416838007190153190
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 744540741875638405}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
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!1 &1384381902454720507
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -15,7 +90,7 @@ GameObject:
|
||||
- component: {fileID: 6730564746972857952}
|
||||
- component: {fileID: 6189457089612025521}
|
||||
m_Layer: 0
|
||||
m_Name: SortableGarbage
|
||||
m_Name: SortableItemBase
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
@@ -34,13 +109,13 @@ RectTransform:
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1832493617040022640}
|
||||
- {fileID: 8626179209158889260}
|
||||
- {fileID: 4122742947624120958}
|
||||
m_Father: {fileID: 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: 200, y: 200}
|
||||
m_SizeDelta: {x: 100, y: 160}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2127389269465269351
|
||||
MonoBehaviour:
|
||||
@@ -75,10 +150,9 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 9a9c60767eef4a3090d8bf70ee87340f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.Core.SortableItemContext
|
||||
cardDisplay: {fileID: 0}
|
||||
garbageVisual: {fileID: 581410895551808339}
|
||||
blinkOverlayImage: {fileID: 8416838007190153190}
|
||||
animator: {fileID: 7928211723630959765}
|
||||
visualTransform: {fileID: 8626179209158889260}
|
||||
visualTransform: {fileID: 0}
|
||||
--- !u!114 &7928211723630959765
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -131,7 +205,7 @@ MonoBehaviour:
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!1 &3963317030246886356
|
||||
--- !u!1 &1524887561224457495
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -139,102 +213,46 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8626179209158889260}
|
||||
- component: {fileID: 581410895551808339}
|
||||
- component: {fileID: 9061673992343081870}
|
||||
- component: {fileID: 2391223799317068879}
|
||||
- component: {fileID: 3335061902473626590}
|
||||
- component: {fileID: 4915963048385449277}
|
||||
- component: {fileID: 2636359196694958052}
|
||||
m_Layer: 0
|
||||
m_Name: Visual
|
||||
m_Name: FellOffConveyorState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8626179209158889260
|
||||
--- !u!224 &4915963048385449277
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3963317030246886356}
|
||||
m_GameObject: {fileID: 1524887561224457495}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8730990344497138252}
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
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: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &581410895551808339
|
||||
--- !u!114 &2636359196694958052
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3963317030246886356}
|
||||
m_GameObject: {fileID: 1524887561224457495}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b707770fc3a6448ea0dcd1b2fbf41e00, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: 619a38624dcf48b19913bd4e1ac28625, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.Core.GarbageVisual
|
||||
spriteRenderer: {fileID: 2391223799317068879}
|
||||
--- !u!222 &9061673992343081870
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3963317030246886356}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &2391223799317068879
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3963317030246886356}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
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: 3452939858483483321, guid: 07aae524a464bd44fbb2abd932615899, 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 &3335061902473626590
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3963317030246886356}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 86710e43de46f6f4bac7c8e50813a599, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.AspectRatioFitter
|
||||
m_AspectMode: 1
|
||||
m_AspectRatio: 1
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.FellOffConveyorState
|
||||
--- !u!1 &4127399957670380340
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -267,10 +285,10 @@ RectTransform:
|
||||
m_Children:
|
||||
- {fileID: 3313403483268767269}
|
||||
- {fileID: 2639445114329646364}
|
||||
- {fileID: 6286864144870698111}
|
||||
- {fileID: 6932285083475453639}
|
||||
- {fileID: 1605142575474884226}
|
||||
- {fileID: 2742122570286299997}
|
||||
- {fileID: 6846791113334578555}
|
||||
- {fileID: 9068178704258338862}
|
||||
- {fileID: 4915963048385449277}
|
||||
- {fileID: 8379092957690634087}
|
||||
m_Father: {fileID: 8730990344497138252}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
@@ -302,7 +320,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 87ed5616041a4d878f452a8741e1eeab, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::UI.CardSystem.StateMachine.CardStateMachine
|
||||
defaultState: {fileID: 0}
|
||||
defaultState: {fileID: 6327696013805378735}
|
||||
currentState: {fileID: 0}
|
||||
_unityEventsFolded: 0
|
||||
verbose: 0
|
||||
@@ -327,7 +345,7 @@ MonoBehaviour:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
customSaveId:
|
||||
--- !u!1 &4665976863542359759
|
||||
--- !u!1 &5258953319553941060
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -335,8 +353,168 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6932285083475453639}
|
||||
- component: {fileID: 4451229561143278730}
|
||||
- component: {fileID: 4122742947624120958}
|
||||
m_Layer: 0
|
||||
m_Name: Visual
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4122742947624120958
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5258953319553941060}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1011486275457818785}
|
||||
- {fileID: 811048234918810510}
|
||||
m_Father: {fileID: 8730990344497138252}
|
||||
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!1 &5278071270215530147
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6846791113334578555}
|
||||
- component: {fileID: 6984415130404958205}
|
||||
m_Layer: 0
|
||||
m_Name: SortedCorrectlyState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6846791113334578555
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5278071270215530147}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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!114 &6984415130404958205
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5278071270215530147}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f3ed2e6fb0814273926c33a178bdf42b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.SortedCorrectlyState
|
||||
--- !u!1 &5593226550131213548
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1011486275457818785}
|
||||
- component: {fileID: 429015749770172477}
|
||||
- component: {fileID: 7509179989723220838}
|
||||
m_Layer: 0
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1011486275457818785
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5593226550131213548}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4122742947624120958}
|
||||
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!222 &429015749770172477
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5593226550131213548}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7509179989723220838
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5593226550131213548}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
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: 3452939858483483321, guid: 07aae524a464bd44fbb2abd932615899, 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!1 &5979039784013227400
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 9068178704258338862}
|
||||
- component: {fileID: 4385886365713563158}
|
||||
m_Layer: 0
|
||||
m_Name: SortedIncorrectlyState
|
||||
m_TagString: Untagged
|
||||
@@ -344,14 +522,14 @@ GameObject:
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6932285083475453639
|
||||
--- !u!224 &9068178704258338862
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4665976863542359759}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_GameObject: {fileID: 5979039784013227400}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
@@ -360,69 +538,21 @@ RectTransform:
|
||||
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.00091552734, y: 0.0006713867}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &4451229561143278730
|
||||
--- !u!114 &4385886365713563158
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4665976863542359759}
|
||||
m_GameObject: {fileID: 5979039784013227400}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: edef0fb846be4fd99d396ea27dca1e4f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.SortedIncorrectlyState
|
||||
--- !u!1 &5724403781907577170
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2742122570286299997}
|
||||
- component: {fileID: 4800484645399462961}
|
||||
m_Layer: 0
|
||||
m_Name: DroppedOnFloorState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2742122570286299997
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5724403781907577170}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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.00091552734, y: 0.0006713867}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &4800484645399462961
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5724403781907577170}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b384e4988bf549f2b6e70d1ff0fa4bcd, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.DroppedOnFloorState
|
||||
--- !u!1 &6327696013805378735
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -471,54 +601,6 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 17d2ba6f5aec4b698247b082734cad8f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.OnConveyorState
|
||||
--- !u!1 &6370853208446123222
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6286864144870698111}
|
||||
- component: {fileID: 8997831685923851135}
|
||||
m_Layer: 0
|
||||
m_Name: SortedCorrectlyState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6286864144870698111
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6370853208446123222}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1832493617040022640}
|
||||
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.00091552734, y: 0.0006713867}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &8997831685923851135
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6370853208446123222}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f3ed2e6fb0814273926c33a178bdf42b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.SortedCorrectlyState
|
||||
--- !u!1 &7284206288927199055
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -567,7 +649,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 015c0740240748c8901c9304490cb80d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.BeingDraggedState
|
||||
--- !u!1 &9016465332917481836
|
||||
--- !u!1 &7496445430129834038
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -575,23 +657,23 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1605142575474884226}
|
||||
- component: {fileID: 8865404769901428854}
|
||||
- component: {fileID: 8379092957690634087}
|
||||
- component: {fileID: 6205288184969541608}
|
||||
m_Layer: 0
|
||||
m_Name: FellOffConveyorState
|
||||
m_Name: DroppedOnFloorState
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1605142575474884226
|
||||
--- !u!224 &8379092957690634087
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 9016465332917481836}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_GameObject: {fileID: 7496445430129834038}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
@@ -600,18 +682,18 @@ RectTransform:
|
||||
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.00091552734, y: 0.0006713867}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &8865404769901428854
|
||||
--- !u!114 &6205288184969541608
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 9016465332917481836}
|
||||
m_GameObject: {fileID: 7496445430129834038}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 619a38624dcf48b19913bd4e1ac28625, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: b384e4988bf549f2b6e70d1ff0fa4bcd, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.FellOffConveyorState
|
||||
m_EditorClassIdentifier: AppleHillsScripts::Minigames.CardSorting.StateMachine.States.DroppedOnFloorState
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 342ae09811d1668448e141153437746d
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -30,8 +30,9 @@ Transform:
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 6518373398422451678}
|
||||
- {fileID: 5850617675450214222}
|
||||
- {fileID: 9217432009376634151}
|
||||
- {fileID: 6518373398422451678}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &3934371481972522631
|
||||
@@ -55,6 +56,7 @@ MonoBehaviour:
|
||||
occupantScale: {x: 1, y: 1, z: 1}
|
||||
scaleTransitionDuration: 0.3
|
||||
boxType: 0
|
||||
hoverIndicator: {fileID: 7267684468009174768}
|
||||
--- !u!1 &6923066319076554151
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -89,6 +91,7 @@ Transform:
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &1395181864555928322
|
||||
SpriteRenderer:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
@@ -131,9 +134,10 @@ SpriteRenderer:
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_GlobalIlluminationMeshLod: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingLayerID: -1132846201
|
||||
m_SortingLayer: 1
|
||||
m_SortingOrder: 0
|
||||
m_MaskInteraction: 0
|
||||
m_Sprite: {fileID: -7843813406500067289, guid: bd1c641e7bfe53145820bb64b08f8fc8, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
@@ -143,7 +147,97 @@ SpriteRenderer:
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!1 &8172954141467387620
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5850617675450214222}
|
||||
- component: {fileID: 7267684468009174768}
|
||||
m_Layer: 0
|
||||
m_Name: Hovered_indicator
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5850617675450214222
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8172954141467387620}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5117288307080929430}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &7267684468009174768
|
||||
SpriteRenderer:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8172954141467387620}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||
m_RayTracingAccelStructBuildFlags: 1
|
||||
m_SmallMeshCulling: 1
|
||||
m_ForceMeshLod: -1
|
||||
m_MeshLodSelectionBias: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 9dfc825aed78fcd4ba02077103263b40, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_GlobalIlluminationMeshLod: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_MaskInteraction: 0
|
||||
m_Sprite: {fileID: -8836962644236845764, guid: c5cc7367a37a7944abb3876352b0e0ff, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 9.61, y: 9.26}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!1 &8952044779537201808
|
||||
GameObject:
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -152,8 +152,6 @@ MonoBehaviour:
|
||||
conveyorSpawnPoint: {fileID: 1122663370}
|
||||
conveyorEndPoint: {fileID: 1595343397}
|
||||
conveyorDespawnPoint: {fileID: 1992305141}
|
||||
sortableCardPrefab: {fileID: 1384381902454720507, guid: 9788d529b225ddd44b92be992be99988, type: 3}
|
||||
sortableGarbagePrefab: {fileID: 1384381902454720507, guid: 942e43abb9beaef429f3d0e7f5bb8fcc, type: 3}
|
||||
sortingBoxes:
|
||||
- {fileID: 1800137401}
|
||||
- {fileID: 731655009}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using AppleHills.Core.Settings;
|
||||
using Minigames.CardSorting.Data;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Core.Settings
|
||||
@@ -29,21 +28,21 @@ namespace Core.Settings
|
||||
[SerializeField] private AnimationCurve speedCurve = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f);
|
||||
|
||||
[Header("Item Pools")]
|
||||
[Tooltip("Garbage items that can spawn (banana peels, cans, receipts, etc.)")]
|
||||
[SerializeField] private GarbageItemDefinition[] garbageItems = new GarbageItemDefinition[0];
|
||||
[Tooltip("Normal rarity card prefabs that can spawn")]
|
||||
[SerializeField] private GameObject[] normalCardPrefabs = new GameObject[0];
|
||||
|
||||
[Tooltip("Rare rarity card prefabs that can spawn")]
|
||||
[SerializeField] private GameObject[] rareCardPrefabs = new GameObject[0];
|
||||
|
||||
[Tooltip("Legendary rarity card prefabs that can spawn")]
|
||||
[SerializeField] private GameObject[] legendaryCardPrefabs = new GameObject[0];
|
||||
|
||||
[Tooltip("Garbage prefabs that can spawn")]
|
||||
[SerializeField] private GameObject[] garbagePrefabs = new GameObject[0];
|
||||
|
||||
[Header("Spawn Weights")]
|
||||
[Tooltip("Weight for spawning normal rarity cards")]
|
||||
[Range(0, 100)] [SerializeField] private float normalCardWeight = 40f;
|
||||
|
||||
[Tooltip("Weight for spawning rare rarity cards")]
|
||||
[Range(0, 100)] [SerializeField] private float rareCardWeight = 30f;
|
||||
|
||||
[Tooltip("Weight for spawning legendary rarity cards")]
|
||||
[Range(0, 100)] [SerializeField] private float legendCardWeight = 20f;
|
||||
|
||||
[Tooltip("Weight for spawning garbage items")]
|
||||
[Range(0, 100)] [SerializeField] private float garbageWeight = 10f;
|
||||
[Tooltip("Ratio of cards to garbage (0 = all garbage, 0.5 = 50/50 split, 1 = all cards)")]
|
||||
[Range(0, 1)] [SerializeField] private float cardToGarbageRatio = 0.5f;
|
||||
|
||||
[Header("Scoring")]
|
||||
[Tooltip("Points awarded for correct sort")]
|
||||
@@ -81,11 +80,11 @@ namespace Core.Settings
|
||||
public float InitialBeltSpeed => initialBeltSpeed;
|
||||
public float MaxBeltSpeed => maxBeltSpeed;
|
||||
public AnimationCurve SpeedCurve => speedCurve;
|
||||
public GarbageItemDefinition[] GarbageItems => garbageItems;
|
||||
public float NormalCardWeight => normalCardWeight;
|
||||
public float RareCardWeight => rareCardWeight;
|
||||
public float LegendCardWeight => legendCardWeight;
|
||||
public float GarbageWeight => garbageWeight;
|
||||
public GameObject[] NormalCardPrefabs => normalCardPrefabs;
|
||||
public GameObject[] RareCardPrefabs => rareCardPrefabs;
|
||||
public GameObject[] LegendaryCardPrefabs => legendaryCardPrefabs;
|
||||
public GameObject[] GarbagePrefabs => garbagePrefabs;
|
||||
public float CardToGarbageRatio => cardToGarbageRatio;
|
||||
public int CorrectSortPoints => correctSortPoints;
|
||||
public int IncorrectSortPenalty => incorrectSortPenalty;
|
||||
public int MissedItemPenalty => missedItemPenalty;
|
||||
|
||||
@@ -18,14 +18,14 @@ namespace Core.Settings
|
||||
float MaxBeltSpeed { get; }
|
||||
AnimationCurve SpeedCurve { get; }
|
||||
|
||||
// Item Pools
|
||||
GarbageItemDefinition[] GarbageItems { get; }
|
||||
// Item Pools - Arrays of prefabs
|
||||
GameObject[] NormalCardPrefabs { get; }
|
||||
GameObject[] RareCardPrefabs { get; }
|
||||
GameObject[] LegendaryCardPrefabs { get; }
|
||||
GameObject[] GarbagePrefabs { get; }
|
||||
|
||||
// Spawn Weights
|
||||
float NormalCardWeight { get; }
|
||||
float RareCardWeight { get; }
|
||||
float LegendCardWeight { get; }
|
||||
float GarbageWeight { get; }
|
||||
// Spawn Ratio (0 = all garbage, 1 = all cards)
|
||||
float CardToGarbageRatio { get; }
|
||||
|
||||
// Scoring
|
||||
int CorrectSortPoints { get; }
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using AppleHills.Data.CardSystem;
|
||||
using Core.Settings;
|
||||
using Data.CardSystem;
|
||||
using Minigames.CardSorting.Core;
|
||||
using Minigames.CardSorting.Data;
|
||||
using System.Collections.Generic;
|
||||
using UI.DragAndDrop.Core;
|
||||
using UnityEngine;
|
||||
@@ -20,8 +18,6 @@ namespace Minigames.CardSorting.Controllers
|
||||
private readonly Transform spawnPoint;
|
||||
private readonly Transform endPoint; // Visual end - scoring happens here
|
||||
private readonly Transform despawnPoint; // Off-screen - destruction happens here
|
||||
private readonly GameObject cardPrefab;
|
||||
private readonly GameObject garbagePrefab;
|
||||
private readonly ICardSortingSettings settings;
|
||||
private readonly Transform spawnContainer; // Container for all spawned items
|
||||
|
||||
@@ -30,7 +26,7 @@ namespace Minigames.CardSorting.Controllers
|
||||
private float currentSpeed;
|
||||
private SortableItem lastSpawnedItem; // Track last spawned item for distance-based spawning
|
||||
private float cachedSpawnOffsetX; // Cached random offset for next spawn
|
||||
private bool isGameOver = false; // Flag to stop conveyor when game ends
|
||||
private bool isGameOver; // Flag to stop conveyor when game ends
|
||||
|
||||
// Events - conveyor owns item lifecycle
|
||||
public event System.Action<SortableItem> OnItemSpawned; // Fired when new item spawns
|
||||
@@ -47,16 +43,12 @@ namespace Minigames.CardSorting.Controllers
|
||||
Transform spawnPoint,
|
||||
Transform endPoint,
|
||||
Transform despawnPoint,
|
||||
GameObject cardPrefab,
|
||||
GameObject garbagePrefab,
|
||||
ICardSortingSettings settings,
|
||||
Transform spawnContainer)
|
||||
{
|
||||
this.spawnPoint = spawnPoint;
|
||||
this.endPoint = endPoint;
|
||||
this.despawnPoint = despawnPoint;
|
||||
this.cardPrefab = cardPrefab;
|
||||
this.garbagePrefab = garbagePrefab;
|
||||
this.settings = settings;
|
||||
this.spawnContainer = spawnContainer;
|
||||
|
||||
@@ -114,33 +106,60 @@ namespace Minigames.CardSorting.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// Spawn a new item at the spawn point.
|
||||
/// Uses cardToGarbageRatio (0-1) to determine card vs garbage spawn chance.
|
||||
/// If cards spawn, rarity is determined by array lengths.
|
||||
/// </summary>
|
||||
private SortableItem SpawnNewItem(float gameProgress)
|
||||
private void SpawnNewItem(float gameProgress)
|
||||
{
|
||||
// Weighted random: card or garbage?
|
||||
float totalWeight = settings.NormalCardWeight + settings.RareCardWeight +
|
||||
settings.LegendCardWeight + settings.GarbageWeight;
|
||||
|
||||
if (totalWeight <= 0f)
|
||||
{
|
||||
Debug.LogWarning("[ConveyorBeltController] Total spawn weight is 0, cannot spawn items!");
|
||||
return null;
|
||||
}
|
||||
|
||||
float roll = Random.Range(0f, totalWeight);
|
||||
// Use ratio to decide: card or garbage?
|
||||
float cardChance = settings.CardToGarbageRatio; // 0 = all garbage, 1 = all cards
|
||||
float roll = Random.Range(0f, 1f);
|
||||
|
||||
SortableItem item;
|
||||
|
||||
if (roll < settings.GarbageWeight)
|
||||
if (roll < cardChance)
|
||||
{
|
||||
// Spawn garbage
|
||||
item = SpawnGarbageItem();
|
||||
// Spawn card - determine rarity based on array lengths
|
||||
int normalWeight = settings.NormalCardPrefabs?.Length ?? 0;
|
||||
int rareWeight = settings.RareCardPrefabs?.Length ?? 0;
|
||||
int legendWeight = settings.LegendaryCardPrefabs?.Length ?? 0;
|
||||
|
||||
int totalCardWeight = normalWeight + rareWeight + legendWeight;
|
||||
|
||||
if (totalCardWeight <= 0)
|
||||
{
|
||||
Debug.LogWarning("[ConveyorBeltController] No card prefabs configured, spawning garbage instead");
|
||||
item = SpawnRandomPrefabFromArray(settings.GarbagePrefabs, true, CardRarity.Normal);
|
||||
}
|
||||
else
|
||||
{
|
||||
float rarityRoll = Random.Range(0f, totalCardWeight);
|
||||
CardRarity rarity;
|
||||
GameObject[] targetArray;
|
||||
|
||||
if (rarityRoll < normalWeight)
|
||||
{
|
||||
rarity = CardRarity.Normal;
|
||||
targetArray = settings.NormalCardPrefabs;
|
||||
}
|
||||
else if (rarityRoll < normalWeight + rareWeight)
|
||||
{
|
||||
rarity = CardRarity.Rare;
|
||||
targetArray = settings.RareCardPrefabs;
|
||||
}
|
||||
else
|
||||
{
|
||||
rarity = CardRarity.Legendary;
|
||||
targetArray = settings.LegendaryCardPrefabs;
|
||||
}
|
||||
|
||||
item = SpawnRandomPrefabFromArray(targetArray, false, rarity);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Spawn card - determine rarity, get random card from CardSystemManager
|
||||
CardRarity rarity = DetermineRarity(roll);
|
||||
item = SpawnCardItem(rarity);
|
||||
// Spawn garbage
|
||||
item = SpawnRandomPrefabFromArray(settings.GarbagePrefabs, true, CardRarity.Normal);
|
||||
}
|
||||
|
||||
if (item != null)
|
||||
@@ -154,114 +173,61 @@ namespace Minigames.CardSorting.Controllers
|
||||
// Emit spawn event
|
||||
OnItemSpawned?.Invoke(item);
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
private SortableItem SpawnGarbageItem()
|
||||
{
|
||||
if (settings.GarbageItems == null || settings.GarbageItems.Length == 0)
|
||||
{
|
||||
Debug.LogWarning("[ConveyorBeltController] No garbage items configured!");
|
||||
return null;
|
||||
}
|
||||
|
||||
GarbageItemDefinition garbage = SelectRandomGarbage();
|
||||
|
||||
// Apply random Y offset to spawn position
|
||||
float randomOffsetY = Random.Range(settings.SpawnOffsetY.x, settings.SpawnOffsetY.y);
|
||||
Vector3 spawnPos = spawnPoint.position + new Vector3(0f, randomOffsetY, 0f);
|
||||
|
||||
GameObject obj = Object.Instantiate(garbagePrefab, spawnPos, Quaternion.identity, spawnContainer);
|
||||
SortableItem item = obj.GetComponent<SortableItem>();
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
item.SetupAsGarbage(garbage);
|
||||
|
||||
// Apply card size (garbage items use same size as cards)
|
||||
ApplyCardSize(item);
|
||||
|
||||
// Subscribe to item events
|
||||
item.OnItemDroppedInBox += HandleItemDroppedInBox;
|
||||
item.OnItemDroppedOnFloor += HandleItemDroppedOnFloor;
|
||||
item.OnItemReturnedToConveyor += HandleItemReturnedToConveyor;
|
||||
|
||||
// Subscribe to drag events to remove from tracking
|
||||
item.OnDragStarted += HandleItemDragStarted;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("[ConveyorBeltController] Garbage prefab missing SortableItem component!");
|
||||
Object.Destroy(obj);
|
||||
return null;
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
private SortableItem SpawnCardItem(CardRarity rarity)
|
||||
{
|
||||
// Get a random card of the specified rarity
|
||||
CardData cardData = GetRandomCardDataByRarity(rarity);
|
||||
|
||||
if (cardData == null)
|
||||
{
|
||||
Debug.LogWarning($"[ConveyorBeltController] No card data found for rarity {rarity}");
|
||||
return null;
|
||||
}
|
||||
|
||||
// Apply random Y offset to spawn position
|
||||
float randomOffsetY = Random.Range(settings.SpawnOffsetY.x, settings.SpawnOffsetY.y);
|
||||
Vector3 spawnPos = spawnPoint.position + new Vector3(0f, randomOffsetY, 0f);
|
||||
|
||||
GameObject obj = Object.Instantiate(cardPrefab, spawnPos, Quaternion.identity, spawnContainer);
|
||||
SortableItem item = obj.GetComponent<SortableItem>();
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
item.SetupAsCard(cardData);
|
||||
|
||||
// Apply card size
|
||||
ApplyCardSize(item);
|
||||
|
||||
// Subscribe to item events
|
||||
item.OnItemDroppedInBox += HandleItemDroppedInBox;
|
||||
item.OnItemDroppedOnFloor += HandleItemDroppedOnFloor;
|
||||
item.OnItemReturnedToConveyor += HandleItemReturnedToConveyor;
|
||||
|
||||
// Subscribe to drag events to remove from tracking
|
||||
item.OnDragStarted += HandleItemDragStarted;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("[ConveyorBeltController] Card prefab missing SortableItem component!");
|
||||
Object.Destroy(obj);
|
||||
return null;
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Helper method to get a random card of a specific rarity.
|
||||
/// Gets a CardDefinition from CardSystemManager and converts to CardData.
|
||||
/// Does NOT affect player's collection or open boosters.
|
||||
/// Spawn a random prefab from an array.
|
||||
/// Prefab is assumed to have SortableItem component and be visually pre-configured.
|
||||
/// </summary>
|
||||
private CardData GetRandomCardDataByRarity(CardRarity targetRarity)
|
||||
private SortableItem SpawnRandomPrefabFromArray(GameObject[] prefabArray, bool isGarbage, CardRarity rarity)
|
||||
{
|
||||
// Get random card definition from manager
|
||||
var definition = CardSystemManager.Instance.GetRandomCardDefinitionByRarity(targetRarity);
|
||||
|
||||
if (definition == null)
|
||||
if (prefabArray == null || prefabArray.Length == 0)
|
||||
{
|
||||
Debug.LogWarning($"[ConveyorBeltController] No card definition found for rarity {targetRarity}");
|
||||
Debug.LogWarning($"[ConveyorBeltController] No prefabs configured for {(isGarbage ? "garbage" : rarity.ToString())}!");
|
||||
return null;
|
||||
}
|
||||
|
||||
// Create CardData from definition using constructor
|
||||
// This properly links the definition and sets all properties
|
||||
return new CardData(definition);
|
||||
// Pick random prefab
|
||||
GameObject prefab = prefabArray[Random.Range(0, prefabArray.Length)];
|
||||
|
||||
if (prefab == null)
|
||||
{
|
||||
Debug.LogWarning($"[ConveyorBeltController] Null prefab in array for {(isGarbage ? "garbage" : rarity.ToString())}!");
|
||||
return null;
|
||||
}
|
||||
|
||||
// Apply random Y offset to spawn position
|
||||
float randomOffsetY = Random.Range(settings.SpawnOffsetY.x, settings.SpawnOffsetY.y);
|
||||
Vector3 spawnPos = spawnPoint.position + new Vector3(0f, randomOffsetY, 0f);
|
||||
|
||||
// Instantiate prefab
|
||||
GameObject obj = Object.Instantiate(prefab, spawnPos, Quaternion.identity, spawnContainer);
|
||||
SortableItem item = obj.GetComponent<SortableItem>();
|
||||
|
||||
if (item == null)
|
||||
{
|
||||
Debug.LogError($"[ConveyorBeltController] Prefab missing SortableItem component: {prefab.name}");
|
||||
Object.Destroy(obj);
|
||||
return null;
|
||||
}
|
||||
|
||||
// Initialize item based on type (just sets flags and state machine)
|
||||
if (isGarbage)
|
||||
{
|
||||
item.SetupAsGarbage();
|
||||
}
|
||||
else
|
||||
{
|
||||
item.SetupAsCard(rarity);
|
||||
}
|
||||
|
||||
// Subscribe to item events
|
||||
item.OnItemDroppedInBox += HandleItemDroppedInBox;
|
||||
item.OnItemDroppedOnFloor += HandleItemDroppedOnFloor;
|
||||
item.OnItemReturnedToConveyor += HandleItemReturnedToConveyor;
|
||||
item.OnDragStarted += HandleItemDragStarted;
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
private void UpdateBeltSpeed(float gameProgress)
|
||||
@@ -391,7 +357,7 @@ namespace Minigames.CardSorting.Controllers
|
||||
if (!activeItems.Contains(item))
|
||||
{
|
||||
activeItems.Add(item);
|
||||
Debug.Log($"[ConveyorBeltController] Item returned to conveyor: {item.CardData?.Name ?? item.GarbageItem?.DisplayName}");
|
||||
Debug.Log($"[ConveyorBeltController] Item returned to conveyor: {(item.IsGarbage ? "Garbage" : $"{item.Rarity} Card")}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -420,42 +386,7 @@ namespace Minigames.CardSorting.Controllers
|
||||
// Emit event for scoring
|
||||
OnItemDroppedOnFloor?.Invoke(item);
|
||||
|
||||
Debug.Log($"[ConveyorBeltController] Item dropped on floor: {item.CardData?.Name ?? item.GarbageItem?.DisplayName}");
|
||||
}
|
||||
|
||||
private CardRarity DetermineRarity(float roll)
|
||||
{
|
||||
// Adjust roll to be relative to card weights only (subtract garbage weight)
|
||||
float adjusted = roll - settings.GarbageWeight;
|
||||
|
||||
if (adjusted < settings.NormalCardWeight)
|
||||
return CardRarity.Normal;
|
||||
|
||||
if (adjusted < settings.NormalCardWeight + settings.RareCardWeight)
|
||||
return CardRarity.Rare;
|
||||
|
||||
return CardRarity.Legendary;
|
||||
}
|
||||
|
||||
private GarbageItemDefinition SelectRandomGarbage()
|
||||
{
|
||||
return settings.GarbageItems[Random.Range(0, settings.GarbageItems.Length)];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Apply configured card size to spawned item.
|
||||
/// </summary>
|
||||
private void ApplyCardSize(SortableItem item)
|
||||
{
|
||||
if (item == null || item.Context == null || item.Context.RootTransform == null)
|
||||
return;
|
||||
|
||||
// Get the RectTransform to resize (root object)
|
||||
var rectTransform = item.Context.RootTransform.GetComponent<RectTransform>();
|
||||
if (rectTransform != null)
|
||||
{
|
||||
rectTransform.sizeDelta = settings.CardSize;
|
||||
}
|
||||
Debug.Log($"[ConveyorBeltController] Item dropped on floor: {(item.IsGarbage ? "Garbage" : $"{item.Rarity} Card")}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -477,7 +408,7 @@ namespace Minigames.CardSorting.Controllers
|
||||
|
||||
if (wasTracked)
|
||||
{
|
||||
Debug.Log($"[ConveyorBeltController] Item removed from tracking (picked up): {item.CardData?.Name ?? item.GarbageItem?.DisplayName}");
|
||||
Debug.Log($"[ConveyorBeltController] Item removed from tracking (picked up): {(item.IsGarbage ? "Garbage" : $"{item.Rarity} Card")}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Minigames.CardSorting.Core
|
||||
{
|
||||
if (item == null) return;
|
||||
|
||||
Debug.Log($"[ConveyorBeltSlot] Item dropped back on conveyor: {item.CardData?.Name ?? item.GarbageItem?.DisplayName}");
|
||||
Debug.Log($"[ConveyorBeltSlot] Item dropped back on conveyor: {(item.IsGarbage ? "Garbage" : $"{item.Rarity} Card")}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Minigames.CardSorting.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Simple sprite renderer for garbage items.
|
||||
/// Parallel to CardDisplay for cards.
|
||||
/// </summary>
|
||||
public class GarbageVisual : MonoBehaviour
|
||||
{
|
||||
[Header("Visual Components")]
|
||||
[SerializeField] private Image spriteRenderer;
|
||||
|
||||
/// <summary>
|
||||
/// Update the displayed sprite.
|
||||
/// </summary>
|
||||
public void UpdateDisplay(Sprite sprite)
|
||||
{
|
||||
if (spriteRenderer != null)
|
||||
{
|
||||
spriteRenderer.sprite = sprite;
|
||||
}
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
// Auto-find Image component if not assigned
|
||||
if (spriteRenderer == null)
|
||||
{
|
||||
spriteRenderer = GetComponent<Image>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b707770fc3a6448ea0dcd1b2fbf41e00
|
||||
timeCreated: 1763461824
|
||||
@@ -1,4 +1,4 @@
|
||||
using AppleHills.Data.CardSystem;
|
||||
using AppleHills.Data.CardSystem;
|
||||
using Core;
|
||||
using Core.SaveLoad;
|
||||
using Minigames.CardSorting.Data;
|
||||
@@ -21,10 +21,12 @@ namespace Minigames.CardSorting.Core
|
||||
[Header("Configuration")]
|
||||
[SerializeField] private string initialState = "OnConveyorState";
|
||||
|
||||
// Data tracking
|
||||
private bool isGarbage;
|
||||
private CardData cardData;
|
||||
private GarbageItemDefinition garbageItem;
|
||||
// Data tracking - set during spawn, no complex data initialization
|
||||
private bool _isGarbage;
|
||||
private CardRarity _rarity; // Only relevant for cards
|
||||
|
||||
// Track last hovered box for hover indicator feedback
|
||||
private SortingBox _lastHoveredBox;
|
||||
|
||||
// Events - item emits notifications, conveyor subscribes
|
||||
public event System.Action<SortableItem, SortingBox, bool> OnItemDroppedInBox;
|
||||
@@ -34,9 +36,8 @@ namespace Minigames.CardSorting.Core
|
||||
// Public accessors
|
||||
public SortableItemContext Context => context;
|
||||
public AppleMachine StateMachine => stateMachine;
|
||||
public bool IsGarbage => isGarbage;
|
||||
public CardData CardData => cardData;
|
||||
public GarbageItemDefinition GarbageItem => garbageItem;
|
||||
public bool IsGarbage => _isGarbage;
|
||||
public CardRarity Rarity => _rarity;
|
||||
|
||||
/// <summary>
|
||||
/// Get the correct box type for this item.
|
||||
@@ -45,10 +46,10 @@ namespace Minigames.CardSorting.Core
|
||||
{
|
||||
get
|
||||
{
|
||||
if (isGarbage)
|
||||
if (_isGarbage)
|
||||
return BoxType.Trash;
|
||||
|
||||
return cardData.Rarity switch
|
||||
return _rarity switch
|
||||
{
|
||||
CardRarity.Normal => BoxType.Normal,
|
||||
CardRarity.Rare => BoxType.Rare,
|
||||
@@ -71,43 +72,23 @@ namespace Minigames.CardSorting.Core
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setup item as a card.
|
||||
/// Setup item as a card. Prefab is already visually configured.
|
||||
/// State machine auto-starts via Initialization component (calls StartMachine in Start).
|
||||
/// </summary>
|
||||
public void SetupAsCard(CardData data)
|
||||
public void SetupAsCard(CardRarity rarity)
|
||||
{
|
||||
isGarbage = false;
|
||||
cardData = data;
|
||||
garbageItem = null;
|
||||
|
||||
if (context != null)
|
||||
{
|
||||
context.SetupAsCard(data);
|
||||
}
|
||||
|
||||
if (stateMachine != null && !string.IsNullOrEmpty(initialState))
|
||||
{
|
||||
stateMachine.ChangeState(initialState);
|
||||
}
|
||||
_isGarbage = false;
|
||||
_rarity = rarity;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setup item as garbage.
|
||||
/// Setup item as garbage. Prefab is already visually configured.
|
||||
/// State machine auto-starts via Initialization component (calls StartMachine in Start).
|
||||
/// </summary>
|
||||
public void SetupAsGarbage(GarbageItemDefinition garbage)
|
||||
public void SetupAsGarbage()
|
||||
{
|
||||
isGarbage = true;
|
||||
cardData = default;
|
||||
garbageItem = garbage;
|
||||
|
||||
if (context != null)
|
||||
{
|
||||
context.SetupAsGarbage(garbage.Sprite);
|
||||
}
|
||||
|
||||
if (stateMachine != null && !string.IsNullOrEmpty(initialState))
|
||||
{
|
||||
stateMachine.ChangeState(initialState);
|
||||
}
|
||||
_isGarbage = true;
|
||||
_rarity = CardRarity.Normal; // Default, not used for garbage
|
||||
}
|
||||
|
||||
protected override void OnDragStartedHook()
|
||||
@@ -125,7 +106,7 @@ namespace Minigames.CardSorting.Core
|
||||
}
|
||||
|
||||
// Default behavior if state doesn't handle
|
||||
Logging.Debug($"[SortableItem] Drag started on {(isGarbage ? garbageItem.DisplayName : cardData.Name)}");
|
||||
Logging.Debug($"[SortableItem] Drag started on {(_isGarbage ? "Garbage" : $"{_rarity} Card")}");
|
||||
}
|
||||
|
||||
// TODO: Fixed when base slot/draggable reworked
|
||||
@@ -143,6 +124,13 @@ namespace Minigames.CardSorting.Core
|
||||
{
|
||||
base.OnDragEndedHook();
|
||||
|
||||
// Hide hover indicator on any previously hovered box
|
||||
if (_lastHoveredBox != null)
|
||||
{
|
||||
_lastHoveredBox.HideHoverIndicator();
|
||||
_lastHoveredBox = null;
|
||||
}
|
||||
|
||||
// Check what type of slot we're over
|
||||
if (CurrentSlot is SortingBox box)
|
||||
{
|
||||
@@ -203,6 +191,7 @@ namespace Minigames.CardSorting.Core
|
||||
UnityEngine.EventSystems.EventSystem.current.RaycastAll(eventData, raycastResults);
|
||||
|
||||
DraggableSlot hoveredSlot = null;
|
||||
SortingBox hoveredBox = null;
|
||||
|
||||
// Find first slot (SortingBox or ConveyorBeltSlot) in raycast results
|
||||
foreach (var result in raycastResults)
|
||||
@@ -212,6 +201,7 @@ namespace Minigames.CardSorting.Core
|
||||
if (box != null)
|
||||
{
|
||||
hoveredSlot = box;
|
||||
hoveredBox = box;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -224,6 +214,26 @@ namespace Minigames.CardSorting.Core
|
||||
}
|
||||
}
|
||||
|
||||
// Update hover indicator on boxes
|
||||
if (hoveredBox != _lastHoveredBox)
|
||||
{
|
||||
// Hide indicator on previously hovered box
|
||||
if (_lastHoveredBox != null)
|
||||
{
|
||||
_lastHoveredBox.HideHoverIndicator();
|
||||
}
|
||||
|
||||
// Show indicator on newly hovered box
|
||||
if (hoveredBox != null)
|
||||
{
|
||||
// Check if this is the correct box for visual feedback
|
||||
bool isCorrectBox = hoveredBox.ValidateItem(this);
|
||||
hoveredBox.ShowHoverIndicator(isCorrectBox);
|
||||
}
|
||||
|
||||
_lastHoveredBox = hoveredBox;
|
||||
}
|
||||
|
||||
// Update current slot (used in OnDragEndedHook)
|
||||
if (hoveredSlot != null && hoveredSlot != CurrentSlot)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using AppleHills.Data.CardSystem;
|
||||
using Core.SaveLoad;
|
||||
using UI.CardSystem;
|
||||
using Core.SaveLoad;
|
||||
using Minigames.CardSorting.Data;
|
||||
using UI.CardSystem.StateMachine;
|
||||
using UnityEngine;
|
||||
|
||||
@@ -9,13 +8,13 @@ namespace Minigames.CardSorting.Core
|
||||
/// <summary>
|
||||
/// Shared context for sortable item states.
|
||||
/// Provides access to common components and data that states need.
|
||||
/// Routes data to appropriate visual component (CardDisplay for cards, GarbageVisual for garbage).
|
||||
/// Prefabs handle their own visual setup - no runtime initialization needed.
|
||||
/// </summary>
|
||||
public class SortableItemContext : MonoBehaviour
|
||||
{
|
||||
[Header("Visual Components (one or the other)")]
|
||||
[SerializeField] private CardDisplay cardDisplay; // For cards
|
||||
[SerializeField] private GarbageVisual garbageVisual; // For garbage
|
||||
[Header("Effect Components")]
|
||||
[Tooltip("Top-level overlay image for visual effects (blink red, etc). Should be hidden by default.")]
|
||||
[SerializeField] private UnityEngine.UI.Image blinkOverlayImage;
|
||||
|
||||
[Header("Shared Components")]
|
||||
[SerializeField] private CardAnimator animator;
|
||||
@@ -24,8 +23,7 @@ namespace Minigames.CardSorting.Core
|
||||
private AppleMachine stateMachine;
|
||||
|
||||
// Public accessors
|
||||
public CardDisplay CardDisplay => cardDisplay;
|
||||
public GarbageVisual GarbageVisual => garbageVisual;
|
||||
public UnityEngine.UI.Image BlinkOverlayImage => blinkOverlayImage;
|
||||
public CardAnimator Animator => animator;
|
||||
public Transform VisualTransform => visualTransform;
|
||||
public AppleMachine StateMachine => stateMachine;
|
||||
@@ -42,6 +40,20 @@ namespace Minigames.CardSorting.Core
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
// Capture original transform for drag animations
|
||||
// This preserves the prefab's configured scale (e.g., 0.05 for world-space Canvas)
|
||||
var currentScale = transform.localScale;
|
||||
if (currentScale.x < 0.01f && currentScale.y < 0.01f && currentScale.z < 0.01f)
|
||||
{
|
||||
OriginalScale = Vector3.one; // Fallback if scale is ~0
|
||||
}
|
||||
else
|
||||
{
|
||||
OriginalScale = currentScale;
|
||||
}
|
||||
OriginalPosition = transform.localPosition;
|
||||
OriginalRotation = transform.localRotation;
|
||||
|
||||
// Auto-find components if not assigned
|
||||
if (visualTransform == null)
|
||||
{
|
||||
@@ -64,76 +76,16 @@ namespace Minigames.CardSorting.Core
|
||||
}
|
||||
}
|
||||
|
||||
if (cardDisplay == null && visualTransform != null)
|
||||
{
|
||||
cardDisplay = visualTransform.GetComponentInChildren<CardDisplay>();
|
||||
}
|
||||
|
||||
if (garbageVisual == null && visualTransform != null)
|
||||
{
|
||||
garbageVisual = visualTransform.GetComponentInChildren<GarbageVisual>();
|
||||
}
|
||||
|
||||
stateMachine = GetComponentInChildren<AppleMachine>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setup as card item - CardDisplay handles all rendering.
|
||||
/// </summary>
|
||||
public void SetupAsCard(CardData cardData)
|
||||
{
|
||||
// Capture original root transform for drag animations
|
||||
// This preserves the tiny world-space Canvas scale (e.g., 0.05)
|
||||
var currentScale = transform.localScale;
|
||||
if (currentScale.x < 0.01f && currentScale.y < 0.01f && currentScale.z < 0.01f)
|
||||
{
|
||||
OriginalScale = Vector3.one; // Fallback if scale is ~0
|
||||
}
|
||||
else
|
||||
{
|
||||
OriginalScale = currentScale;
|
||||
}
|
||||
OriginalPosition = transform.localPosition;
|
||||
OriginalRotation = transform.localRotation;
|
||||
|
||||
if (cardDisplay != null)
|
||||
// Hide blink overlay initially
|
||||
if (blinkOverlayImage != null)
|
||||
{
|
||||
cardDisplay.SetupCard(cardData);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"[SortableItemContext] CardDisplay not found on {name}");
|
||||
blinkOverlayImage.enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setup as garbage item - simple sprite display.
|
||||
/// </summary>
|
||||
public void SetupAsGarbage(Sprite sprite)
|
||||
{
|
||||
// Capture original root transform for drag animations
|
||||
// This preserves the tiny world-space Canvas scale (e.g., 0.05)
|
||||
var currentScale = transform.localScale;
|
||||
if (currentScale.x < 0.01f && currentScale.y < 0.01f && currentScale.z < 0.01f)
|
||||
{
|
||||
OriginalScale = Vector3.one; // Fallback if scale is ~0
|
||||
}
|
||||
else
|
||||
{
|
||||
OriginalScale = currentScale;
|
||||
}
|
||||
OriginalPosition = transform.localPosition;
|
||||
OriginalRotation = transform.localRotation;
|
||||
|
||||
if (garbageVisual != null)
|
||||
{
|
||||
garbageVisual.UpdateDisplay(sprite);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"[SortableItemContext] GarbageVisual not found on {name}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0ebfb8d9e40f4532b3a3919ced988330
|
||||
timeCreated: 1766069349
|
||||
@@ -13,8 +13,47 @@ namespace Minigames.CardSorting.Core
|
||||
[Header("Box Configuration")]
|
||||
[SerializeField] private BoxType boxType;
|
||||
|
||||
[Header("Visual Feedback")]
|
||||
[Tooltip("Sprite renderer to show when an item is hovering over this box")]
|
||||
[SerializeField] private SpriteRenderer hoverIndicator;
|
||||
|
||||
public BoxType BoxType => boxType;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
// Hide hover indicator on start
|
||||
if (hoverIndicator != null)
|
||||
{
|
||||
hoverIndicator.enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Show the hover indicator when an item is hovering over this box.
|
||||
/// </summary>
|
||||
/// <param name="isCorrect">If true, tints the indicator green. Otherwise uses default color.</param>
|
||||
public void ShowHoverIndicator(bool isCorrect = false)
|
||||
{
|
||||
if (hoverIndicator != null)
|
||||
{
|
||||
hoverIndicator.enabled = true;
|
||||
|
||||
// Tint green if correct box, white otherwise
|
||||
hoverIndicator.color = isCorrect ? Color.green : Color.white;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Hide the hover indicator when an item stops hovering.
|
||||
/// </summary>
|
||||
public void HideHoverIndicator()
|
||||
{
|
||||
if (hoverIndicator != null)
|
||||
{
|
||||
hoverIndicator.enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check if item belongs in this box.
|
||||
/// </summary>
|
||||
|
||||
@@ -21,8 +21,6 @@ namespace Minigames.CardSorting.Core
|
||||
[SerializeField] private Transform conveyorSpawnPoint;
|
||||
[SerializeField] private Transform conveyorEndPoint; // Visual end - items scored as missed here
|
||||
[SerializeField] private Transform conveyorDespawnPoint; // Off-screen - items destroyed here
|
||||
[SerializeField] private GameObject sortableCardPrefab;
|
||||
[SerializeField] private GameObject sortableGarbagePrefab;
|
||||
[SerializeField] private SortingBox[] sortingBoxes;
|
||||
[SerializeField] private Transform spawnedItemsContainer; // Container for all spawned items (optional, will auto-create if null)
|
||||
|
||||
@@ -44,8 +42,6 @@ namespace Minigames.CardSorting.Core
|
||||
conveyorSpawnPoint,
|
||||
conveyorEndPoint,
|
||||
conveyorDespawnPoint,
|
||||
sortableCardPrefab,
|
||||
sortableGarbagePrefab,
|
||||
_settings,
|
||||
GetOrCreateSpawnContainer()
|
||||
);
|
||||
@@ -213,23 +209,24 @@ namespace Minigames.CardSorting.Core
|
||||
}
|
||||
|
||||
// Blink the item red (if it still exists)
|
||||
if (item != null && item.Context != null && item.Context.Animator != null)
|
||||
if (item != null && item.Context != null && item.Context.Animator != null && item.Context.BlinkOverlayImage != null)
|
||||
{
|
||||
UnityEngine.UI.Image imageToBlink = null;
|
||||
// Show overlay before blinking
|
||||
item.Context.BlinkOverlayImage.enabled = true;
|
||||
|
||||
if (item.Context.CardDisplay != null)
|
||||
{
|
||||
imageToBlink = item.Context.CardDisplay.GetComponent<UnityEngine.UI.Image>();
|
||||
}
|
||||
else if (item.Context.GarbageVisual != null)
|
||||
{
|
||||
imageToBlink = item.Context.GarbageVisual.GetComponent<UnityEngine.UI.Image>();
|
||||
}
|
||||
item.Context.Animator.BlinkRed(item.Context.BlinkOverlayImage, 0.15f);
|
||||
|
||||
if (imageToBlink != null)
|
||||
{
|
||||
item.Context.Animator.BlinkRed(imageToBlink, 0.15f);
|
||||
}
|
||||
// Hide overlay after blink duration (assuming blink duration + buffer)
|
||||
StartCoroutine(HideOverlayAfterDelay(item.Context.BlinkOverlayImage, 0.5f));
|
||||
}
|
||||
}
|
||||
|
||||
private System.Collections.IEnumerator HideOverlayAfterDelay(UnityEngine.UI.Image overlay, float delay)
|
||||
{
|
||||
yield return new WaitForSeconds(delay);
|
||||
if (overlay != null)
|
||||
{
|
||||
overlay.enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -310,7 +307,7 @@ namespace Minigames.CardSorting.Core
|
||||
{
|
||||
if (item != null && item.gameObject != null)
|
||||
{
|
||||
Logging.Debug($"[SortingGameManager] Destroying orphaned item: {item.CardData?.Name ?? item.GarbageItem?.DisplayName}");
|
||||
Logging.Debug($"[SortingGameManager] Destroying orphaned item: {(item.IsGarbage ? "Garbage" : $"{item.Rarity} Card")}");
|
||||
Destroy(item.gameObject);
|
||||
}
|
||||
}
|
||||
@@ -364,7 +361,7 @@ namespace Minigames.CardSorting.Core
|
||||
// Forward to public event for UI/other systems
|
||||
OnItemSpawned?.Invoke(item);
|
||||
|
||||
Logging.Debug($"[SortingGameManager] Item spawned: {item.CardData?.Name ?? item.GarbageItem?.DisplayName}");
|
||||
Logging.Debug($"[SortingGameManager] Item spawned: {(item.IsGarbage ? "Garbage" : $"{item.Rarity} Card")}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -383,11 +380,11 @@ namespace Minigames.CardSorting.Core
|
||||
Score.RecordMissedItem();
|
||||
PlayWrongStateFeedback(item);
|
||||
LoseLife();
|
||||
Logging.Debug($"[SortingGameManager] Trash fell off belt! {item.GarbageItem?.DisplayName} - PENALTY");
|
||||
Logging.Debug($"[SortingGameManager] Trash fell off belt! Garbage - PENALTY");
|
||||
}
|
||||
else
|
||||
{
|
||||
Logging.Debug($"[SortingGameManager] Card fell off belt: {item.CardData?.Name} - no penalty");
|
||||
Logging.Debug($"[SortingGameManager] Card fell off belt: {item.Rarity} Card - no penalty");
|
||||
}
|
||||
|
||||
// Fire global fell off belt event for effects
|
||||
@@ -412,11 +409,11 @@ namespace Minigames.CardSorting.Core
|
||||
Score.RecordIncorrectSort();
|
||||
PlayWrongStateFeedback(item);
|
||||
LoseLife();
|
||||
Logging.Debug($"[SortingGameManager] Trash dropped on floor! {item.GarbageItem?.DisplayName} - PENALTY");
|
||||
Logging.Debug($"[SortingGameManager] Trash dropped on floor! Garbage - PENALTY");
|
||||
}
|
||||
else
|
||||
{
|
||||
Logging.Debug($"[SortingGameManager] Card dropped on floor: {item.CardData?.Name} - no penalty");
|
||||
Logging.Debug($"[SortingGameManager] Card dropped on floor: {item.Rarity} Card - no penalty");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -426,7 +423,8 @@ namespace Minigames.CardSorting.Core
|
||||
/// </summary>
|
||||
private void OnConveyorItemDespawned(SortableItem item)
|
||||
{
|
||||
Logging.Debug($"[SortingGameManager] Item despawned: {item.CardData?.Name ?? item.GarbageItem?.DisplayName}");
|
||||
Logging.Debug($"[SortingGameManager] Item despawned: {(item.IsGarbage ? "Garbage" : $"{item.Rarity} Card")}");
|
||||
|
||||
|
||||
// Destroy the item
|
||||
if (item != null)
|
||||
@@ -446,7 +444,7 @@ namespace Minigames.CardSorting.Core
|
||||
if (correct)
|
||||
{
|
||||
Score.RecordCorrectSort();
|
||||
Logging.Debug($"[SortingGameManager] Correct sort! {item.CardData?.Name ?? item.GarbageItem?.DisplayName}");
|
||||
Logging.Debug($"[SortingGameManager] Correct sort! {(item.IsGarbage ? "Garbage" : $"{item.Rarity} Card")}");
|
||||
|
||||
// Fire global correct sort event for effects
|
||||
OnItemSortedCorrectly?.Invoke(item);
|
||||
@@ -460,14 +458,14 @@ namespace Minigames.CardSorting.Core
|
||||
Score.RecordIncorrectSort();
|
||||
PlayWrongStateFeedback(item);
|
||||
LoseLife();
|
||||
Logging.Debug($"[SortingGameManager] Incorrect trash sort! {item.GarbageItem?.DisplayName} - PENALTY");
|
||||
Logging.Debug($"[SortingGameManager] Incorrect trash sort! Garbage - PENALTY");
|
||||
|
||||
// Fire global incorrect sort event for effects
|
||||
OnItemSortedIncorrectly?.Invoke(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logging.Debug($"[SortingGameManager] Card sorted incorrectly: {item.CardData?.Name} - no penalty");
|
||||
Logging.Debug($"[SortingGameManager] Card sorted incorrectly: {item.Rarity} Card - no penalty");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d88deb3df9e54bdb83b9a7ed1c7e3e27
|
||||
timeCreated: 1766069228
|
||||
@@ -1,38 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Minigames.CardSorting.Data
|
||||
{
|
||||
/// <summary>
|
||||
/// Definition for garbage items (banana peels, cans, receipts, etc.).
|
||||
/// Cards use existing CardDefinition from CardSystemManager.
|
||||
/// </summary>
|
||||
[CreateAssetMenu(fileName = "GarbageItem", menuName = "Minigames/CardSorting/GarbageItem", order = 0)]
|
||||
public class GarbageItemDefinition : ScriptableObject
|
||||
{
|
||||
[Tooltip("Unique identifier for this garbage item")]
|
||||
[SerializeField] private string itemId;
|
||||
|
||||
[Tooltip("Display name for debugging")]
|
||||
[SerializeField] private string displayName;
|
||||
|
||||
[Tooltip("Sprite to display for this garbage item")]
|
||||
[SerializeField] private Sprite sprite;
|
||||
|
||||
// Public accessors
|
||||
public string ItemId => itemId;
|
||||
public string DisplayName => displayName;
|
||||
public Sprite Sprite => sprite;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
private void OnValidate()
|
||||
{
|
||||
// Auto-generate itemId from asset name if empty
|
||||
if (string.IsNullOrEmpty(itemId))
|
||||
{
|
||||
itemId = name;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2e69a2167710437798b1980126d5a4f6
|
||||
timeCreated: 1763461765
|
||||
@@ -57,28 +57,12 @@ namespace Minigames.CardSorting.StateMachine.States
|
||||
|
||||
private void StartBlinkingRed()
|
||||
{
|
||||
if (_context.Animator == null) return;
|
||||
if (_context.Animator == null || _context.BlinkOverlayImage == null) return;
|
||||
|
||||
// Get the image to tint (CardDisplay or GarbageVisual)
|
||||
UnityEngine.UI.Image imageToBlink = null;
|
||||
// Show overlay before blinking
|
||||
_context.BlinkOverlayImage.enabled = true;
|
||||
|
||||
if (_context.CardDisplay != null)
|
||||
{
|
||||
imageToBlink =
|
||||
_context.CardDisplay.GetComponent<UnityEngine.UI.Image>()
|
||||
?? _context.CardDisplay.GetComponentInChildren<UnityEngine.UI.Image>();
|
||||
}
|
||||
else if (_context.GarbageVisual != null)
|
||||
{
|
||||
imageToBlink =
|
||||
_context.GarbageVisual.GetComponent<UnityEngine.UI.Image>()
|
||||
?? _context.GarbageVisual.GetComponentInChildren<UnityEngine.UI.Image>();
|
||||
}
|
||||
|
||||
if (imageToBlink != null)
|
||||
{
|
||||
_context.Animator.BlinkRed(imageToBlink);
|
||||
}
|
||||
_context.Animator.BlinkRed(_context.BlinkOverlayImage);
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
|
||||
@@ -29,6 +29,8 @@ MonoBehaviour:
|
||||
cooldownDuration: 8
|
||||
jetSpeed: 40
|
||||
jetAngle: 5
|
||||
maxActiveDuration: 5
|
||||
cooldownMultiplier: 2
|
||||
bobbingPlaneConfig:
|
||||
displayName: Bobbing Plane
|
||||
prefab: {fileID: 2043346932243838886, guid: 9abb3ccce7bdafd488921e7931161647, type: 3}
|
||||
@@ -61,7 +63,8 @@ MonoBehaviour:
|
||||
abilityIcon: {fileID: -5545584635573524598, guid: 333a17a4395130b46984c04bbb6e09ea, type: 3}
|
||||
cooldownDuration: 4
|
||||
dropForce: 35
|
||||
dropDistance: 20
|
||||
maxActiveDuration: 3
|
||||
cooldownMultiplier: 2
|
||||
zeroHorizontalVelocity: 1
|
||||
defaultAirplaneType: 1
|
||||
slingshotSettings:
|
||||
|
||||
@@ -40,12 +40,15 @@ MonoBehaviour:
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
garbageItems:
|
||||
- {fileID: 11400000, guid: b9c54fbced64684419e983429fd27b34, type: 2}
|
||||
normalCardWeight: 40
|
||||
rareCardWeight: 30
|
||||
legendCardWeight: 20
|
||||
garbageWeight: 40
|
||||
normalCardPrefabs:
|
||||
- {fileID: 1205919338430796931, guid: caab778e5a08341498fe895141ad7dd7, type: 3}
|
||||
rareCardPrefabs:
|
||||
- {fileID: 1205919338430796931, guid: 2a3f5cc2e7ca670459ebe1c556883c9f, type: 3}
|
||||
legendaryCardPrefabs:
|
||||
- {fileID: 1205919338430796931, guid: 0cc305839e3ff7843b350430206543b4, type: 3}
|
||||
garbagePrefabs:
|
||||
- {fileID: 8040288309226191295, guid: 16a53235286e7a9438ec114b71ef6230, type: 3}
|
||||
cardToGarbageRatio: 0.75
|
||||
correctSortPoints: 1
|
||||
incorrectSortPenalty: -1
|
||||
missedItemPenalty: 0
|
||||
|
||||
Reference in New Issue
Block a user