feature: added grid/with random crops and abilitly to collect items

This commit is contained in:
unfaiyted 2024-06-27 15:40:57 -05:00
parent aab57c014f
commit 358e509f33
119 changed files with 89632 additions and 21749 deletions

View File

@ -45,7 +45,7 @@ TextureImporter:
compressionQuality: 50 compressionQuality: 50
spriteMode: 1 spriteMode: 1
spriteExtrude: 1 spriteExtrude: 1
spriteMeshType: 1 spriteMeshType: 0
alignment: 0 alignment: 0
spritePivot: {x: 0.5, y: 0.5} spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 32 spritePixelsToUnits: 32

View File

@ -206,6 +206,17 @@ SpriteRenderer:
m_WasSpriteAssigned: 0 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!114 &55764737 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2459192827589041509, guid: 39759b252d2a3b14bac95b998153b10c, type: 3}
m_PrefabInstance: {fileID: 1415210401}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &75680595 --- !u!1 &75680595
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1121,6 +1132,80 @@ Transform:
m_CorrespondingSourceObject: {fileID: 7878350319992209165, guid: a7959c06ff849aa4caefbf2f807bd9c0, type: 3} m_CorrespondingSourceObject: {fileID: 7878350319992209165, guid: a7959c06ff849aa4caefbf2f807bd9c0, type: 3}
m_PrefabInstance: {fileID: 164443770} m_PrefabInstance: {fileID: 164443770}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &308592489
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1798196277}
m_Modifications:
- target: {fileID: 159864456136319945, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_ExcludeLayers.m_Bits
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4422298301363191958, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_SortingLayer
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6867599750340019036, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_Name
value: Crop
objectReference: {fileID: 0}
- target: {fileID: 6867599750340019036, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
propertyPath: m_Layer
value: 6
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
--- !u!4 &308592490 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 2085523569709406154, guid: ec6b0b736b8df5645b048f732b88473e, type: 3}
m_PrefabInstance: {fileID: 308592489}
m_PrefabAsset: {fileID: 0}
--- !u!1 &382836008 --- !u!1 &382836008
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1394,7 +1479,7 @@ Transform:
m_GameObject: {fileID: 401349964} m_GameObject: {fileID: 401349964}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 3.072, y: -13.907, z: -10} m_LocalPosition: {x: 41.455, y: -35.823, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
@ -1409,9 +1494,13 @@ MonoBehaviour:
m_GameObject: {fileID: 401349964} m_GameObject: {fileID: 401349964}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 87aff04283fc36842ad8099eca0e6560, type: 3} m_Script: {fileID: 11500000, guid: 56666c5a40171f54783dd416a44f42bf, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_EventMask:
serializedVersion: 2
m_Bits: 4294967295
m_MaxRayIntersections: 0
--- !u!1 &401923481 --- !u!1 &401923481
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -2165,8 +2254,9 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 561327469} - component: {fileID: 561327469}
- component: {fileID: 561327470}
m_Layer: 0 m_Layer: 0
m_Name: GameObject m_Name: EnvironmentManager
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
@ -2187,6 +2277,82 @@ Transform:
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &561327470
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 561327468}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6f2c9a43837d45a9b0a1b0ad3194b4d9, type: 3}
m_Name:
m_EditorClassIdentifier:
dayLengthInMinutes: 1
startTimeInHours: 6
globalLight: {fileID: 1411413851}
timeText: {fileID: 55764737}
lightColorGradient:
serializedVersion: 2
key0: {r: 0.77254903, g: 0.47407502, b: 0.12549019, a: 1}
key1: {r: 0.9811321, g: 0.9045927, b: 0.040108997, a: 1}
key2: {r: 0.899371, g: 0.5718402, b: 0.12161289, a: 0}
key3: {r: 0, g: 0, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}
key5: {r: 0, g: 0, b: 0, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 386
ctime1: 34952
ctime2: 65535
ctime3: 0
ctime4: 0
ctime5: 0
ctime6: 0
ctime7: 0
atime0: 0
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_ColorSpace: -1
m_NumColorKeys: 3
m_NumAlphaKeys: 2
lightIntensityGradient:
serializedVersion: 2
key0: {r: 0.9748427, g: 0.70382303, b: 0.039851885, a: 1}
key1: {r: 0.9811321, g: 0.9811321, b: 0.9811321, a: 1}
key2: {r: 0.7924528, g: 0.5185961, b: 0.14204334, a: 0}
key3: {r: 0, g: 0, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}
key5: {r: 0, g: 0, b: 0, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 386
ctime1: 33667
ctime2: 65535
ctime3: 0
ctime4: 0
ctime5: 0
ctime6: 0
ctime7: 0
atime0: 0
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_ColorSpace: -1
m_NumColorKeys: 3
m_NumAlphaKeys: 2
--- !u!1 &574620257 --- !u!1 &574620257
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -2751,7 +2917,7 @@ SpriteRenderer:
m_AutoUVMaxAngle: 89 m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0} m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 1850455741 m_SortingLayerID: 1850455741
m_SortingLayer: 1 m_SortingLayer: 3
m_SortingOrder: 0 m_SortingOrder: 0
m_Sprite: {fileID: -834936095, guid: a4bda3c7a42cf2141afe8395d918647f, type: 3} m_Sprite: {fileID: -834936095, guid: a4bda3c7a42cf2141afe8395d918647f, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
@ -3506,27 +3672,27 @@ PrefabInstance:
m_Modifications: m_Modifications:
- target: {fileID: 704568521623278172, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 704568521623278172, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1567374384020758945, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 1567374384020758945, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2079522140611710566, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 2079522140611710566, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2570726837739363372, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 2570726837739363372, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2753946225696872537, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 2753946225696872537, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 3.072 value: 41.455
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2753946225696872537, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 2753946225696872537, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: -13.907 value: -35.823
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2753946225696872537, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 2753946225696872537, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@ -3562,31 +3728,31 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2887562943990419943, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 2887562943990419943, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2999229705999912581, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 2999229705999912581, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3278119825534544945, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 3278119825534544945, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3601202510868019581, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 3601202510868019581, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3687380425203740867, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 3687380425203740867, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3700732427390618947, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 3700732427390618947, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4147909544834842079, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 4147909544834842079, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4525914024393110275, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 4525914024393110275, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_SortingOrder propertyPath: m_SortingOrder
@ -3594,31 +3760,31 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5160847594743533444, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 5160847594743533444, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5524425761559274541, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 5524425761559274541, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5567131289900234237, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 5567131289900234237, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6555827926954405943, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 6555827926954405943, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6649912988136208856, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 6649912988136208856, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6739666094099168650, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 6739666094099168650, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7030659996662289646, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 7030659996662289646, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7194374020966037453, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 7194374020966037453, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Name propertyPath: m_Name
@ -3626,7 +3792,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7194374020966037453, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 7194374020966037453, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7202410949277811474, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 7202410949277811474, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: heart1 propertyPath: heart1
@ -3646,15 +3812,15 @@ PrefabInstance:
objectReference: {fileID: 372623920949236097, guid: 602ab39f51a1c1c4585fd88cb6b77e1b, type: 3} objectReference: {fileID: 372623920949236097, guid: 602ab39f51a1c1c4585fd88cb6b77e1b, type: 3}
- target: {fileID: 7401015952524906830, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 7401015952524906830, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8119188872936528447, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 8119188872936528447, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 9012121527196620182, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3} - target: {fileID: 9012121527196620182, guid: 59b693825ff89ae4b9e44b83dfd8995a, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 5 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
@ -5534,6 +5700,10 @@ PrefabInstance:
propertyPath: m_Camera propertyPath: m_Camera
value: value:
objectReference: {fileID: 401349968} objectReference: {fileID: 401349968}
- target: {fileID: 3886580715314287751, guid: 39759b252d2a3b14bac95b998153b10c, type: 3}
propertyPath: m_SortingLayerID
value: -1063265501
objectReference: {fileID: 0}
- target: {fileID: 4063828067927024584, guid: 39759b252d2a3b14bac95b998153b10c, type: 3} - target: {fileID: 4063828067927024584, guid: 39759b252d2a3b14bac95b998153b10c, type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 0
@ -7047,6 +7217,115 @@ PrefabInstance:
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: -8435245712485981826, guid: a7959c06ff849aa4caefbf2f807bd9c0, type: 3} m_SourcePrefab: {fileID: -8435245712485981826, guid: a7959c06ff849aa4caefbf2f807bd9c0, type: 3}
--- !u!1001 &1558583663
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1099441969732328810, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Name
value: GameManager
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.z
value: 90
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3197594663145996531, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: playerData
value:
objectReference: {fileID: 11400000, guid: 25aedbd0c728bf249a2c951d0233c8f4, type: 2}
- target: {fileID: 6402974898025804338, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: currentMap
value:
objectReference: {fileID: 11400000, guid: 3d746e3682726c54d8e3e77f02628a16, type: 2}
- target: {fileID: 6638565982570277134, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: gameState.playerData
value:
objectReference: {fileID: 11400000, guid: 25aedbd0c728bf249a2c951d0233c8f4, type: 2}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d27075628330ae74082130fac9663ba3, type: 3}
--- !u!1 &1567821006 --- !u!1 &1567821006
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -7434,6 +7713,14 @@ PrefabInstance:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: m_Modifications:
- target: {fileID: -5648233100709156510, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4130270672445547601, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 69937173988377431, guid: d0eb69552b35eef44962617f5fd1076f, type: 3} - target: {fileID: 69937173988377431, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 0 value: 0
@ -7482,6 +7769,34 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: Farm value: Farm
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1332891142143283238, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_TagString
value: Map
objectReference: {fileID: 0}
- target: {fileID: 1459602312775954134, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3126291994800007566, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4033609704614039939, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5924372230677966949, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6228263545901800072, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7936889638589114670, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects: []
@ -7677,6 +7992,106 @@ SpriteRenderer:
m_WasSpriteAssigned: 0 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1001 &1798196276
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1247668486146181009, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: isOccupied
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1247668486146181009, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: isOccupiedByCrop
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5320458187769795758, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_SortingLayer
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5320458187769795758, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_SortingLayerID
value: 610771917
objectReference: {fileID: 0}
- target: {fileID: 5320458187769795758, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_RenderingLayerMask
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalPosition.x
value: 42.270523
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalPosition.y
value: -35.48398
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7848130704331449967, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_Layer
value: 6
objectReference: {fileID: 0}
- target: {fileID: 7901335860876313421, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_ExcludeLayers.m_Bits
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8257118877032255596, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_Name
value: Tile
objectReference: {fileID: 0}
- target: {fileID: 8257118877032255596, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_Layer
value: 6
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects:
- targetCorrespondingSourceObject: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
insertIndex: 0
addedObject: {fileID: 308592490}
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 7848130704331449967, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
insertIndex: -1
addedObject: {fileID: 0}
m_SourcePrefab: {fileID: 100100000, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
--- !u!4 &1798196277 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
m_PrefabInstance: {fileID: 1798196276}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1831746628 --- !u!1 &1831746628
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -8245,7 +8660,7 @@ Transform:
m_GameObject: {fileID: 1952311936} m_GameObject: {fileID: 1952311936}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 3.072, y: -13.907, z: -10} m_LocalPosition: {x: 41.455, y: -35.823, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children:
@ -8676,3 +9091,5 @@ SceneRoots:
- {fileID: 1084492445} - {fileID: 1084492445}
- {fileID: 1415210401} - {fileID: 1415210401}
- {fileID: 561327469} - {fileID: 561327469}
- {fileID: 1558583663}
- {fileID: 1798196276}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -29,11 +29,11 @@ public class Box : ScriptableObject
if (slot.IsEmpty()) if (slot.IsEmpty())
{ {
slot.item = item; slot.item = item;
Debug.Log("Added item to slot: " + slot.slotId + " / " + item.name); Debug.Log("Added item to slot: " + slot.slotId + " / " + item.itemName);
return; return;
} }
Debug.LogWarning("No empty slots available to add item: " + item.name); Debug.LogWarning("No empty slots available to add item: " + item.itemName);
} }
public void AddItemToSlot(GameItem item, int slotId) public void AddItemToSlot(GameItem item, int slotId)

View File

@ -1,4 +1,5 @@
using UnityEngine; using System.Collections.Generic;
using UnityEngine;
// This is a base class for all crops in the game. It is for the actual crop in the ground. // This is a base class for all crops in the game. It is for the actual crop in the ground.
// It is not for the seeds that are planted or the harvested crops. (CropItem) // It is not for the seeds that are planted or the harvested crops. (CropItem)
@ -17,18 +18,44 @@ public class Crop : ScriptableObject
public int growthStages; public int growthStages;
public int currentGrowthStage; public int currentGrowthStage;
public bool isWatered;
public int waterRequirement; // 1 = daily, 2 = every other day, 3 = every third day, etc. ?
public float waterRequirement;
public int lightRequirement; public bool lightRequirement;
// public int temperatureRequirement;
// public int fertilizerRequirement;
// public int pesticideRequirement;
// public int growthModifier;
// public int quality;
// null = no tool required
public List<ToolItem.ToolType> validToolTypes;
// will need to change the sprite depending on the growth stage // will need to change the sprite depending on the growth stage
public Sprite[] growthSprites; public Sprite[] growthSprites;
public bool IsToolRequired()
{
// if crop has no values
if (validToolTypes == null)
return false;
// also if one of the valid tool types is none then we dont need a tool
return !validToolTypes.Contains(ToolItem.ToolType.None);
}
public bool isHarvestable()
{
// if crop has no values
if (currentGrowthStage < growthStages)
{
Debug.Log("Crop is not ready to harvest");
return false;
}
Debug.Log("Crop is ready to harvest");
return true;
}
public void setCropItem(GameItem randomCropItem)
{
cropItem = (CropItem)randomCropItem;
}
} }

View File

@ -4,7 +4,7 @@
public class Grid : ScriptableObject public class Grid : ScriptableObject
{ {
public Vector2Int size; public Vector2Int size;
private GridSpace[,] _tiles; private Tile[,] _tiles;
// Initialize the grid with the size of the map // Initialize the grid with the size of the map
public Grid(Vector2Int size) public Grid(Vector2Int size)
@ -15,17 +15,18 @@ public class Grid : ScriptableObject
public void Initialize(Vector2Int gSize) public void Initialize(Vector2Int gSize)
{ {
_tiles = new GridSpace[gSize.x, gSize.y]; size = gSize;
_tiles = new Tile[gSize.x, gSize.y];
} }
public GridSpace GetTile(int x, int y) public Tile GetTile(int x, int y)
{ {
return _tiles[x, y]; return _tiles[x, y];
} }
public void SetTile(int x, int y, GridSpace gridSpace) public void SetTile(int x, int y, Tile tile)
{ {
_tiles[x, y] = gridSpace; _tiles[x, y] = tile;
} }
public void ClearTile(int x, int y) public void ClearTile(int x, int y)

View File

@ -1,17 +0,0 @@
using System.Collections.Generic;
using UnityEngine;
public class GridSpace : ScriptableObject
{
public Crop Crop { get; set; }
public List<GameItem> GameItems { get; set; }
public InteractableItem InteractableItem { get; set; }
public void Initialize(Vector2Int vector2Int)
{
Debug.Log("GridSpace Initialize");
Crop = null;
GameItems = new List<GameItem>();
InteractableItem = null;
}
}

View File

@ -29,10 +29,10 @@ public class GameItem : ScriptableObject
} }
public string name; public string itemName;
public Sprite icon; public Sprite icon;
public int itemValue; public int itemValue;
public Rarity rarity; // todo: maybe like enum type? public Rarity rarity;
public string quantity; public string quantity;
public int stackSize; public int stackSize;
public int sellValue; public int sellValue;

View File

@ -4,6 +4,26 @@ using UnityEngine;
[CreateAssetMenu(fileName = "ToolItem", menuName = "Game Data/Tool")] [CreateAssetMenu(fileName = "ToolItem", menuName = "Game Data/Tool")]
public class ToolItem : GameItem public class ToolItem : GameItem
{ {
// tool type enum
public enum ToolType
{
Mining,
Woodcutting,
Fishing,
Hunting,
Watering,
Harvesting,
Cooking,
Smithing,
Alchemy,
Enchanting,
Repairing,
Crafting,
None
}
public ToolType toolType;
public int durability; public int durability;
public int maxDurability; public int maxDurability;
@ -13,24 +33,6 @@ public class ToolItem : GameItem
public int speed; public int speed;
public int efficiency; public int efficiency;
public bool isHarvestingTool;
public bool isBuildingTool;
public bool isCombatTool;
public bool isUtilityTool;
public bool isCraftingTool;
public bool isGatheringTool;
public bool isFishingTool;
public bool isMiningTool;
public bool isWoodcuttingTool;
public bool isHuntingTool;
public bool isFarmingTool;
public bool isCookingTool;
public bool isSmithingTool;
public bool isAlchemyTool;
public bool isEnchantingTool;
public bool isRepairingTool;
// set type to Tool when creating a new ToolItem // set type to Tool when creating a new ToolItem
public ToolItem() public ToolItem()
{ {

View File

@ -161,6 +161,6 @@ public class PlayerData : ScriptableObject
return; return;
} }
Debug.LogWarning("No empty slots available to add item: " + item.name); Debug.LogWarning("No empty slots available to add item: " + item.itemName);
} }
} }

View File

@ -71,7 +71,7 @@ public class Slot : ScriptableObject
public virtual string GetItemName() public virtual string GetItemName()
{ {
return item != null ? item.name : string.Empty; return item != null ? item.itemName : string.Empty;
} }
public virtual float GetItemValue() public virtual float GetItemValue()

View File

@ -0,0 +1,52 @@
using System.Collections.Generic;
using UnityEngine;
public class Tile : ScriptableObject
{
public Crop Crop { get; set; }
public List<GameItem> GameItems { get; set; }
public InteractableItem InteractableItem { get; set; }
public void Initialize(Vector2Int vector2Int)
{
Debug.Log("GRID: GridSpace Initialize");
Crop = null;
GameItems = new List<GameItem>();
InteractableItem = null;
}
public void AddGameItem(GameItem gameItem)
{
GameItems.Add(gameItem);
}
public void RemoveGameItem(GameItem gameItem)
{
GameItems.Remove(gameItem);
}
public void ClearGameItems()
{
GameItems.Clear();
}
public void SetCrop(Crop crop)
{
Crop = crop;
}
public void SetInteractableItem(InteractableItem interactableItem)
{
InteractableItem = interactableItem;
}
public void ClearCrop()
{
Crop = null;
}
public void ClearInteractableItem()
{
InteractableItem = null;
}
}

161
Assets/Prefabs/Crop.prefab Normal file
View File

@ -0,0 +1,161 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6867599750340019036
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2085523569709406154}
- component: {fileID: 4422298301363191958}
- component: {fileID: 159864456136319945}
- component: {fileID: 8040498833470762050}
- component: {fileID: 8338586741962354806}
m_Layer: 0
m_Name: Crop
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2085523569709406154
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6867599750340019036}
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: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &4422298301363191958
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6867599750340019036}
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_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 0c64d28b05d051747aa0e02887916363, 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_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 696718efb1b01ee42a1b15ec3485056c, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!61 &159864456136319945
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6867599750340019036}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ForceSendLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ForceReceiveLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ContactCaptureLayers:
serializedVersion: 2
m_Bits: 4294967295
m_CallbackLayers:
serializedVersion: 2
m_Bits: 4294967295
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: -0.0046424866, y: 0.07979584}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1}
newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 0.98629, y: 0.84734344}
m_EdgeRadius: 0
--- !u!114 &8040498833470762050
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6867599750340019036}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 758d6c72e45e4fe9a1482c833ec12970, type: 3}
m_Name:
m_EditorClassIdentifier:
crop: {fileID: 11400000, guid: 2048be7335203864993e970247dc0dc4, type: 2}
isWatered: 0
--- !u!114 &8338586741962354806
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6867599750340019036}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7af21450edb54a7d96de3f4450867909, type: 3}
m_Name:
m_EditorClassIdentifier:
hoverMaterial: {fileID: 2100000, guid: 96e80d4181adcfb409ec922c38aed472, type: 2}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ec6b0b736b8df5645b048f732b88473e
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: f068cdd42c7d7294a91063b7d453b5f2 guid: d27075628330ae74082130fac9663ba3
PrefabImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@ -127,12 +127,11 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6b363dff4da946008c3bf994802907c3, type: 3} m_Script: {fileID: 11500000, guid: 6b363dff4da946008c3bf994802907c3, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
prefabManager: {fileID: 0}
itemHandler: {fileID: 0} itemHandler: {fileID: 0}
item: {fileID: 0} item: {fileID: 0}
nameText: {fileID: 0} nameText: {fileID: 3477045028508391878}
itemIcon: {fileID: 0} itemIcon: {fileID: 2977110455671008734}
quantityText: {fileID: 0} quantityText: {fileID: 4650047974456027948}
--- !u!1 &7835567476815678593 --- !u!1 &7835567476815678593
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -81,7 +81,7 @@ SpriteRenderer:
m_Size: {x: 0.9375, y: 0.4375} m_Size: {x: 0.9375, y: 0.4375}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1 &1567374384020758945 --- !u!1 &1567374384020758945
@ -165,7 +165,7 @@ SpriteRenderer:
m_Size: {x: 0.375, y: 0.9375} m_Size: {x: 0.375, y: 0.9375}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1 &2079522140611710566 --- !u!1 &2079522140611710566
@ -282,7 +282,7 @@ SpriteRenderer:
m_Size: {x: 0.9375, y: 0.4375} m_Size: {x: 0.9375, y: 0.4375}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1 &2887562943990419943 --- !u!1 &2887562943990419943
@ -358,7 +358,7 @@ SpriteRenderer:
m_LightmapParameters: {fileID: 0} m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 4 m_SortingOrder: 1
m_Sprite: {fileID: -1740935063656591167, guid: 8752894632389124987920676f38447b, type: 3} m_Sprite: {fileID: -1740935063656591167, guid: 8752894632389124987920676f38447b, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
@ -528,7 +528,7 @@ SpriteRenderer:
m_LightmapParameters: {fileID: 0} m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 3 m_SortingOrder: 1
m_Sprite: {fileID: -7251008811857487067, guid: 8752894632389124987920676f38447b, type: 3} m_Sprite: {fileID: -7251008811857487067, guid: 8752894632389124987920676f38447b, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
@ -621,7 +621,7 @@ SpriteRenderer:
m_Size: {x: 0.375, y: 0.9375} m_Size: {x: 0.375, y: 0.9375}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1 &3687380425203740867 --- !u!1 &3687380425203740867
@ -738,7 +738,7 @@ SpriteRenderer:
m_Size: {x: 0.9375, y: 0.4375} m_Size: {x: 0.9375, y: 0.4375}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1 &4147909544834842079 --- !u!1 &4147909544834842079
@ -972,7 +972,7 @@ SpriteRenderer:
m_Size: {x: 0.9375, y: 0.4375} m_Size: {x: 0.9375, y: 0.4375}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1 &6555827926954405943 --- !u!1 &6555827926954405943
@ -1056,7 +1056,7 @@ SpriteRenderer:
m_Size: {x: 0.375, y: 0.9375} m_Size: {x: 0.375, y: 0.9375}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1 &6649912988136208856 --- !u!1 &6649912988136208856
@ -1133,7 +1133,7 @@ SpriteRenderer:
m_LightmapParameters: {fileID: 0} m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 3 m_SortingOrder: 1
m_Sprite: {fileID: -1740935063656591167, guid: 8752894632389124987920676f38447b, type: 3} m_Sprite: {fileID: -1740935063656591167, guid: 8752894632389124987920676f38447b, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
@ -1226,7 +1226,7 @@ SpriteRenderer:
m_Size: {x: 0.375, y: 0.9375} m_Size: {x: 0.375, y: 0.9375}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 0
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!1 &7030659996662289646 --- !u!1 &7030659996662289646
@ -1415,7 +1415,7 @@ SpriteRenderer:
m_LightmapParameters: {fileID: 0} m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 0 m_SortingOrder: 1
m_Sprite: {fileID: 0} m_Sprite: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
@ -1532,7 +1532,7 @@ BoxCollider2D:
m_IsTrigger: 0 m_IsTrigger: 0
m_UsedByEffector: 0 m_UsedByEffector: 0
m_UsedByComposite: 0 m_UsedByComposite: 0
m_Offset: {x: -0.03536865, y: 0.026465654} m_Offset: {x: -0.04253006, y: 0.90862465}
m_SpriteTilingProperty: m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0, y: 0} pivot: {x: 0, y: 0}
@ -1543,7 +1543,7 @@ BoxCollider2D:
adaptiveTiling: 0 adaptiveTiling: 0
m_AutoTiling: 0 m_AutoTiling: 0
serializedVersion: 2 serializedVersion: 2
m_Size: {x: 0.8358169, y: 0.94062054} m_Size: {x: 0.47922516, y: 1.350872}
m_EdgeRadius: 0 m_EdgeRadius: 0
--- !u!1 &7401015952524906830 --- !u!1 &7401015952524906830
GameObject: GameObject:
@ -1571,7 +1571,7 @@ Transform:
m_GameObject: {fileID: 7401015952524906830} m_GameObject: {fileID: 7401015952524906830}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: -0.007, y: -0.037, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children:
@ -1618,7 +1618,7 @@ SpriteRenderer:
m_LightmapParameters: {fileID: 0} m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 3 m_SortingOrder: 1
m_Sprite: {fileID: 7458692444393483219, guid: 8752894632389124987920676f38447b, type: 3} m_Sprite: {fileID: 7458692444393483219, guid: 8752894632389124987920676f38447b, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
@ -1703,7 +1703,7 @@ SpriteRenderer:
m_LightmapParameters: {fileID: 0} m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 3 m_SortingOrder: 1
m_Sprite: {fileID: 6717488638354847534, guid: 8752894632389124987920676f38447b, type: 3} m_Sprite: {fileID: 6717488638354847534, guid: 8752894632389124987920676f38447b, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0

View File

@ -1,89 +1,5 @@
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!1 &5411729226619395558
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 623056105988180336}
- component: {fileID: 2957710771980246572}
m_Layer: 0
m_Name: Crop
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &623056105988180336
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5411729226619395558}
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: 0
m_Children: []
m_Father: {fileID: 5869475592065529047}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &2957710771980246572
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5411729226619395558}
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_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, 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_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 696718efb1b01ee42a1b15ec3485056c, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &7848130704331449967 --- !u!1 &7848130704331449967
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -118,8 +34,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.348, y: -0.389} m_AnchoredPosition: {x: -0.139, y: -0.395}
m_SizeDelta: {x: 0.2467, y: 0.1788} m_SizeDelta: {x: 0.65, y: 0.1788}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!23 &650248281035758156 --- !u!23 &650248281035758156
MeshRenderer: MeshRenderer:
@ -266,6 +182,7 @@ GameObject:
- component: {fileID: 5869475592065529047} - component: {fileID: 5869475592065529047}
- component: {fileID: 5320458187769795758} - component: {fileID: 5320458187769795758}
- component: {fileID: 1247668486146181009} - component: {fileID: 1247668486146181009}
- component: {fileID: 7901335860876313421}
m_Layer: 0 m_Layer: 0
m_Name: Tile m_Name: Tile
m_TagString: Untagged m_TagString: Untagged
@ -286,7 +203,6 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 623056105988180336}
- {fileID: 2939938164759589604} - {fileID: 2939938164759589604}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -359,5 +275,50 @@ MonoBehaviour:
isOccupied: 0 isOccupied: 0
isOccupiedByCrop: 0 isOccupiedByCrop: 0
isOccupiedByInteractableItem: 0 isOccupiedByInteractableItem: 0
gridSpace: {fileID: 0} tile: {fileID: 0}
CoordinatesText: {fileID: 27764899484920381} coordinatesText: {fileID: 0}
--- !u!61 &7901335860876313421
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8257118877032255596}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ForceSendLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ForceReceiveLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ContactCaptureLayers:
serializedVersion: 2
m_Bits: 4294967295
m_CallbackLayers:
serializedVersion: 2
m_Bits: 4294967295
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1}
newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1, y: 1}
m_EdgeRadius: 0

8
Assets/Prefabs/test.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 31b0099debb10534d83cb827ae30071c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56dfa1684f724ae7b8ee0d0d732644fc, type: 3}
m_Name: Broccoli
m_EditorClassIdentifier:
cropItem: {fileID: 11400000, guid: 9dec8615a5788a940ad4c2ecec1d45a3, type: 2}
seedItem: {fileID: 11400000, guid: 71faa6dc159ef0044a6febfab9ff3bb4, type: 2}
yield: 3
experience: 133
growthStages: 6
currentGrowthStage: 6
isWatered: 0
waterRequirement: 1
lightRequirement: 1
validToolTypes:
growthSprites:
- {fileID: 21300000, guid: f735c6d2226c9854fa6f585a2ed0d91f, type: 3}
- {fileID: 21300000, guid: da678942cbb1da3408fe5122f7dc7633, type: 3}
- {fileID: 21300000, guid: 40eb61dadfedff340b3016c077cb9eaf, type: 3}
- {fileID: 21300000, guid: 255e1bab2fd7f5e4c8e512b5d9c1e4e7, type: 3}
- {fileID: 21300000, guid: 8c25b2fa8e29b0246a72106ff75cd7c4, type: 3}
- {fileID: 21300000, guid: 53d3ddf7a6bd3364eb182b2c92c67634, type: 3}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 26b3b7aeddb33354685b9d9e694071ce
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56dfa1684f724ae7b8ee0d0d732644fc, type: 3}
m_Name: Coffee
m_EditorClassIdentifier:
cropItem: {fileID: 11400000, guid: ca986cf57408a2a4397b30e39b2de4e9, type: 2}
seedItem: {fileID: 11400000, guid: a5fda4c035344dc45adc63e12f6200c4, type: 2}
yield: 3
experience: 133
growthStages: 6
currentGrowthStage: 6
isWatered: 0
waterRequirement: 1
lightRequirement: 1
validToolTypes:
growthSprites:
- {fileID: 21300000, guid: 3768fcd6ec27aba4f8e0f249e292789d, type: 3}
- {fileID: 21300000, guid: 2cac8281fc5e58c4f951569d304f861b, type: 3}
- {fileID: 21300000, guid: d4e35d01bbdc4bd4181987c1c12daf1c, type: 3}
- {fileID: 21300000, guid: c06e61cd6cc500742bdb7b31bcae4250, type: 3}
- {fileID: 21300000, guid: b8d632c05d3bf82439a98b2f2b30b7ee, type: 3}
- {fileID: 21300000, guid: f77ff5ce0b2cbdf47bfc6dc8206e0174, type: 3}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3e11c72926e6b2c468cd049adafa26a7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56dfa1684f724ae7b8ee0d0d732644fc, type: 3}
m_Name: Corn
m_EditorClassIdentifier:
cropItem: {fileID: 11400000, guid: 475ef82c47bf93c49a235a521099c058, type: 2}
seedItem: {fileID: 11400000, guid: 3c542149255d1604eaa0914d3ff03ec7, type: 2}
yield: 3
experience: 133
growthStages: 6
currentGrowthStage: 6
isWatered: 0
waterRequirement: 1
lightRequirement: 1
validToolTypes:
growthSprites:
- {fileID: 21300000, guid: d99ac73f914c690408a556f6e81add0a, type: 3}
- {fileID: 21300000, guid: fc1f688f856d55846b2167e5798ed310, type: 3}
- {fileID: 21300000, guid: b5ae632b10678de4a850ee4d3165bc0c, type: 3}
- {fileID: 21300000, guid: b19349ced4e7c5e4ca29ea8a115fdbc5, type: 3}
- {fileID: 21300000, guid: c0ad008f4b75efa4fb5df2dd148ca05e, type: 3}
- {fileID: 21300000, guid: 29009749ad22e4f4697f3d9db2fbdf3e, type: 3}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bd045b57b252e114fa5e8ee9fc2ae4ef
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56dfa1684f724ae7b8ee0d0d732644fc, type: 3}
m_Name: Eggplant
m_EditorClassIdentifier:
cropItem: {fileID: 11400000, guid: 1b31a6bbd8443fb4ba1e96d90b8f5820, type: 2}
seedItem: {fileID: 11400000, guid: 0a663b1a3568dff47a739b9269d791de, type: 2}
yield: 3
experience: 133
growthStages: 6
currentGrowthStage: 6
isWatered: 0
waterRequirement: 1
lightRequirement: 1
validToolTypes:
growthSprites:
- {fileID: 21300000, guid: e21c6c3c1593e514bbf168c71316fe83, type: 3}
- {fileID: 21300000, guid: ba456b5aebfd5cf4398800dbad1b62cc, type: 3}
- {fileID: 21300000, guid: 1139b9a1972a222428f8c5143aeb7c17, type: 3}
- {fileID: 21300000, guid: fc3b5b8b1c6106d41a2be385e4ec20cb, type: 3}
- {fileID: 21300000, guid: 28c30683c76fd044e975ee64c38f0a98, type: 3}
- {fileID: 21300000, guid: 91591e55a93937f49a86c50ce0583599, type: 3}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7adea2f512d9c144fb3072bf2430e6c7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -12,12 +12,20 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 56dfa1684f724ae7b8ee0d0d732644fc, type: 3} m_Script: {fileID: 11500000, guid: 56dfa1684f724ae7b8ee0d0d732644fc, type: 3}
m_Name: Wheat m_Name: Wheat
m_EditorClassIdentifier: m_EditorClassIdentifier:
cropItem: {fileID: 0} cropItem: {fileID: 11400000, guid: 3c730d989bd9f3f43aa3ffd9ad87685f, type: 2}
seedItem: {fileID: 0} seedItem: {fileID: 11400000, guid: d8d4703c362793446abba118986086a5, type: 2}
yield: 0 yield: 3
experience: 0 experience: 133
growthStages: 0 growthStages: 6
currentGrowthStage: 0 currentGrowthStage: 6
waterRequirement: 0 isWatered: 0
lightRequirement: 0 waterRequirement: 1
growthSprites: [] lightRequirement: 1
validToolTypes:
growthSprites:
- {fileID: 21300000, guid: ef6ee300e1aeeab45940a9b0908bcb3f, type: 3}
- {fileID: 21300000, guid: 2fee040d1b56cbc4c88d5ce67efaa395, type: 3}
- {fileID: 21300000, guid: da0c6906bb20f3240a770f5ad1db4bd4, type: 3}
- {fileID: 21300000, guid: 803017dcae4ff1d4683bf4c495a82944, type: 3}
- {fileID: 21300000, guid: ea3388e70dd63f542ae7077971926d86, type: 3}
- {fileID: 21300000, guid: 7d40fd6994f7a364aa38ef146d1ea0e8, type: 3}

View File

@ -12,17 +12,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3} m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3}
m_Name: Broccoli m_Name: Broccoli
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Carrot itemName: Carrot
icon: {fileID: 21300000, guid: 98178ba9a232a93498f75b73c551c3d2, type: 3} icon: {fileID: 21300000, guid: 98178ba9a232a93498f75b73c551c3d2, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 6 type: 6
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 1
isQuestItem: 0 isQuestItem: 0
isKeyItem: 0 isKeyItem: 0
isCraftable: 0 isCraftable: 0

View File

@ -12,17 +12,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3} m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3}
m_Name: Carrot m_Name: Carrot
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Carrot itemName: Carrot
icon: {fileID: 21300000, guid: 928413b9eafcc9048b7d71111a1e2e9f, type: 3} icon: {fileID: 21300000, guid: 928413b9eafcc9048b7d71111a1e2e9f, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 6 type: 6
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 1
isQuestItem: 0 isQuestItem: 0
isKeyItem: 0 isKeyItem: 0
isCraftable: 0 isCraftable: 0

View File

@ -12,17 +12,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3} m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3}
m_Name: Coffee m_Name: Coffee
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Coffee itemName: Coffee
icon: {fileID: 21300000, guid: bebed37f3772de64ba4b86feff6b5db0, type: 3} icon: {fileID: 21300000, guid: bebed37f3772de64ba4b86feff6b5db0, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 6 type: 6
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 1
isQuestItem: 0 isQuestItem: 0
isKeyItem: 0 isKeyItem: 0
isCraftable: 0 isCraftable: 0

View File

@ -12,17 +12,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3} m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3}
m_Name: Corn m_Name: Corn
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Corn itemName: Corn
icon: {fileID: 21300000, guid: 7006e25f47ebc8b48917bbfa54057a73, type: 3} icon: {fileID: 21300000, guid: 7006e25f47ebc8b48917bbfa54057a73, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 6 type: 6
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 1
isQuestItem: 0 isQuestItem: 0
isKeyItem: 0 isKeyItem: 0
isCraftable: 0 isCraftable: 0

View File

@ -12,17 +12,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3} m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3}
m_Name: Eggplant m_Name: Eggplant
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Eggplant itemName: Eggplant
icon: {fileID: 21300000, guid: 00dee1c671b769143877b376c1e2d5a7, type: 3} icon: {fileID: 21300000, guid: 00dee1c671b769143877b376c1e2d5a7, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 6 type: 6
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 1
isQuestItem: 0 isQuestItem: 0
isKeyItem: 0 isKeyItem: 0
isCraftable: 0 isCraftable: 0

View File

@ -0,0 +1,34 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7bdc11739290487798adae225b521eec, type: 3}
m_Name: Wheat
m_EditorClassIdentifier:
itemName: Wheat
icon: {fileID: 21300000, guid: 7d40fd6994f7a364aa38ef146d1ea0e8, type: 3}
itemValue: 0
rarity: 0
quantity:
stackSize: 999
sellValue: 0
type: 6
isStackable: 1
isEquippable: 0
isConsumable: 1
isQuestItem: 0
isKeyItem: 0
isCraftable: 0
isTradeable: 0
isSellable: 0
isDroppable: 0
isDestroyable: 0
isUsable: 0
experience: 65

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3c730d989bd9f3f43aa3ffd9ad87685f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -12,15 +12,15 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3} m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3}
m_Name: Broccoli Seed m_Name: Broccoli Seed
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Broccoli Seed itemName: Broccoli Seed
icon: {fileID: 21300000, guid: e158dd5b1e23e5a42be8b2039c9c780f, type: 3} icon: {fileID: 21300000, guid: e158dd5b1e23e5a42be8b2039c9c780f, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 4 type: 4
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 0
isQuestItem: 0 isQuestItem: 0

View File

@ -12,15 +12,15 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3} m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3}
m_Name: Carrot Seed m_Name: Carrot Seed
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Carrot Seed itemName: Carrot Seed
icon: {fileID: 21300000, guid: bdafa718d6088e441be4e67a30676355, type: 3} icon: {fileID: 21300000, guid: bdafa718d6088e441be4e67a30676355, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 4 type: 4
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 0
isQuestItem: 0 isQuestItem: 0

View File

@ -12,15 +12,15 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3} m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3}
m_Name: Coffee Seed m_Name: Coffee Seed
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Coffee Seed itemName: Coffee Seed
icon: {fileID: 21300000, guid: f5eac2015204636499d4968954570672, type: 3} icon: {fileID: 21300000, guid: f5eac2015204636499d4968954570672, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 4 type: 4
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 0
isQuestItem: 0 isQuestItem: 0

View File

@ -12,15 +12,15 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3} m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3}
m_Name: Corn Seed m_Name: Corn Seed
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Corn Seed itemName: Corn Seed
icon: {fileID: 21300000, guid: e354a86f46323a54c84b11a20fa548ae, type: 3} icon: {fileID: 21300000, guid: e354a86f46323a54c84b11a20fa548ae, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 4 type: 4
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 0
isQuestItem: 0 isQuestItem: 0

View File

@ -12,15 +12,15 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3} m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3}
m_Name: Eggplant Seed m_Name: Eggplant Seed
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: Eggplant Seed itemName: Eggplant Seed
icon: {fileID: 21300000, guid: dacac9149d46d5443995ba78dc6b6892, type: 3} icon: {fileID: 21300000, guid: dacac9149d46d5443995ba78dc6b6892, type: 3}
itemValue: 0 itemValue: 0
rarity: 0 rarity: 0
quantity: quantity:
stackSize: 0 stackSize: 999
sellValue: 0 sellValue: 0
type: 4 type: 4
isStackable: 0 isStackable: 1
isEquippable: 0 isEquippable: 0
isConsumable: 0 isConsumable: 0
isQuestItem: 0 isQuestItem: 0

View File

@ -0,0 +1,36 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 263b64a5a19449858d582da889aafcad, type: 3}
m_Name: Wheat Seed
m_EditorClassIdentifier:
itemName: Wheat Seed
icon: {fileID: 21300000, guid: 54f1e23643c233b4e981d7530e936be2, type: 3}
itemValue: 0
rarity: 0
quantity:
stackSize: 999
sellValue: 0
type: 4
isStackable: 1
isEquippable: 0
isConsumable: 0
isQuestItem: 0
isKeyItem: 0
isCraftable: 0
isTradeable: 0
isSellable: 0
isDroppable: 0
isDestroyable: 0
isUsable: 0
crop: {fileID: 11400000, guid: 3c730d989bd9f3f43aa3ffd9ad87685f, type: 2}
growthTime: 0
growSeasons:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d8d4703c362793446abba118986086a5
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -12,5 +12,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 9e1b345bacd54220bfb8e88444225334, type: 3} m_Script: {fileID: 11500000, guid: 9e1b345bacd54220bfb8e88444225334, type: 3}
m_Name: FarmMap m_Name: FarmMap
m_EditorClassIdentifier: m_EditorClassIdentifier:
grid: {fileID: 0}
sceneName: MainMenu sceneName: MainMenu
gridPosition: {x: 0, y: 0, z: 0}
gridSize: {x: 100, y: 100}
playerStartPosition: {x: 0, y: 0}
grid: {fileID: 0}

View File

@ -1420,9 +1420,13 @@ MonoBehaviour:
m_GameObject: {fileID: 401349964} m_GameObject: {fileID: 401349964}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 87aff04283fc36842ad8099eca0e6560, type: 3} m_Script: {fileID: 11500000, guid: 56666c5a40171f54783dd416a44f42bf, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_EventMask:
serializedVersion: 2
m_Bits: 4294967295
m_MaxRayIntersections: 0
--- !u!1 &401923481 --- !u!1 &401923481
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -7135,6 +7139,115 @@ PrefabInstance:
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: -8435245712485981826, guid: a7959c06ff849aa4caefbf2f807bd9c0, type: 3} m_SourcePrefab: {fileID: -8435245712485981826, guid: a7959c06ff849aa4caefbf2f807bd9c0, type: 3}
--- !u!1001 &1558583663
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1099441969732328810, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Name
value: GameManager
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.z
value: 90
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3197594663145996531, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: playerData
value:
objectReference: {fileID: 11400000, guid: 25aedbd0c728bf249a2c951d0233c8f4, type: 2}
- target: {fileID: 6402974898025804338, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: currentMap
value:
objectReference: {fileID: 11400000, guid: 3d746e3682726c54d8e3e77f02628a16, type: 2}
- target: {fileID: 6638565982570277134, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: gameState.playerData
value:
objectReference: {fileID: 11400000, guid: 25aedbd0c728bf249a2c951d0233c8f4, type: 2}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d27075628330ae74082130fac9663ba3, type: 3}
--- !u!1 &1567821006 --- !u!1 &1567821006
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -7522,6 +7635,14 @@ PrefabInstance:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: m_Modifications:
- target: {fileID: -5648233100709156510, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4130270672445547601, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 69937173988377431, guid: d0eb69552b35eef44962617f5fd1076f, type: 3} - target: {fileID: 69937173988377431, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 0 value: 0
@ -7570,6 +7691,34 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: Farm value: Farm
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1332891142143283238, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_TagString
value: Map
objectReference: {fileID: 0}
- target: {fileID: 1459602312775954134, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3126291994800007566, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4033609704614039939, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5924372230677966949, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6228263545901800072, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7936889638589114670, guid: d0eb69552b35eef44962617f5fd1076f, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects: []
@ -8764,3 +8913,4 @@ SceneRoots:
- {fileID: 1084492445} - {fileID: 1084492445}
- {fileID: 1415210401} - {fileID: 1415210401}
- {fileID: 561327469} - {fileID: 561327469}
- {fileID: 1558583663}

View File

@ -502,6 +502,7 @@ GameObject:
- component: {fileID: 672375810} - component: {fileID: 672375810}
- component: {fileID: 672375809} - component: {fileID: 672375809}
- component: {fileID: 672375812} - component: {fileID: 672375812}
- component: {fileID: 672375813}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -627,6 +628,22 @@ MonoBehaviour:
m_MipBias: 0 m_MipBias: 0
m_VarianceClampScale: 0.9 m_VarianceClampScale: 0.9
m_ContrastAdaptiveSharpening: 0 m_ContrastAdaptiveSharpening: 0
--- !u!114 &672375813
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 672375808}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 56666c5a40171f54783dd416a44f42bf, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EventMask:
serializedVersion: 2
m_Bits: 4294967295
m_MaxRayIntersections: 0
--- !u!1 &737217595 --- !u!1 &737217595
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1028,6 +1045,68 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 804445073} m_GameObject: {fileID: 804445073}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!1 &911236910 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 8257118877032255596, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
m_PrefabInstance: {fileID: 4772071642411593056}
m_PrefabAsset: {fileID: 0}
--- !u!114 &911236914
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 911236910}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbcbd421c01e452f9c1b7e83b9a2bfc0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!61 &911236915
BoxCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 911236910}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ForceSendLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ForceReceiveLayers:
serializedVersion: 2
m_Bits: 4294967295
m_ContactCaptureLayers:
serializedVersion: 2
m_Bits: 4294967295
m_CallbackLayers:
serializedVersion: 2
m_Bits: 4294967295
m_IsTrigger: 0
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 1, y: 1}
newSize: {x: 1, y: 1}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 1, y: 1}
m_EdgeRadius: 0
--- !u!1 &1406866839 --- !u!1 &1406866839
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1364,220 +1443,17 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1621318479} m_GameObject: {fileID: 1621318479}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!1 &1716277274 --- !u!114 &1716277277 stripped
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1716277275}
- component: {fileID: 1716277279}
- component: {fileID: 1716277287}
- component: {fileID: 1716277278}
- component: {fileID: 1716277284}
- component: {fileID: 1716277277}
- component: {fileID: 1716277286}
- component: {fileID: 1716277285}
- component: {fileID: 1716277280}
- component: {fileID: 1716277281}
- component: {fileID: 1716277282}
- component: {fileID: 1716277283}
- component: {fileID: 1716277276}
- component: {fileID: 1716277288}
m_Layer: 5
m_Name: GameManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1716277275
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 90}
m_LocalScale: {x: 0.013888889, y: 0.013888889, z: 0.013888889}
m_ConstrainProportionsScale: 0
m_Children: []
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: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1716277276
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 6638565982570277134, guid: d27075628330ae74082130fac9663ba3, type: 3}
m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 7548446348757859447}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274} m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c44379412e6f434dbf4e19bcf1f1415c, type: 3}
m_Name:
m_EditorClassIdentifier:
playerData: {fileID: 0}
--- !u!114 &1716277277
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: aae3b52a44ed4b142ac85f4637eaaec0, type: 3} m_Script: {fileID: 11500000, guid: aae3b52a44ed4b142ac85f4637eaaec0, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
gameState:
playerData: {fileID: 0}
defaultPlayerData: {fileID: 11400000, guid: 25aedbd0c728bf249a2c951d0233c8f4, type: 2}
--- !u!114 &1716277278
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6ede7ab1c1274b938f214f249176c4a2, type: 3}
m_Name:
m_EditorClassIdentifier:
gameItems: []
--- !u!114 &1716277279
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 70e1576532381594e95784af89f64782, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1716277280
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fb47975b92514e63abbe9147cff0c7ac, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1716277281
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a01e628262f74ce98e48cc21247081a3, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1716277282
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0f6eb69f2c964afb864140ddb42c39c6, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1716277283
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7307db9affb0e3d41a6d0bc5afcdc1af, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1716277284
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 77de9cf819ee48e88e0c639a6ded4318, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &1716277285
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a63366092cd940258ce1eb295c2697aa, type: 3}
m_Name:
m_EditorClassIdentifier:
currentMap: {fileID: 0}
--- !u!114 &1716277286
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 485a16bcfbf74c7c8f289519efc1979c, type: 3}
m_Name:
m_EditorClassIdentifier:
tileSize: 32
--- !u!114 &1716277287
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 74ab37462cef4f6d99b759fd094b1d6c, type: 3}
m_Name:
m_EditorClassIdentifier:
slotPrefab: {fileID: 1662876271322988295, guid: dd5bd23829f2633488e8d890f7503af0, type: 3}
itemPrefab: {fileID: 6548796882194455502, guid: 8097ab5fed74753418c9dd3d602c7b93, type: 3}
hotkeyEntryPrefab: {fileID: 8445508939331188797, guid: 2ea4eece2df353c4796107c0bb9a6225, type: 3}
--- !u!114 &1716277288
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1716277274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 70e66f233cd34460b23717871895ac59, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &2076652140 --- !u!1 &2076652140
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1665,13 +1541,25 @@ PrefabInstance:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: m_Modifications:
- target: {fileID: 623056105988180336, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalPosition.x
value: 0.009
objectReference: {fileID: 0}
- target: {fileID: 623056105988180336, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalPosition.y
value: -0.006
objectReference: {fileID: 0}
- target: {fileID: 1613200681959488883, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3} - target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: -4.64 value: 0.65
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3} - target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: 0.27 value: -1.67
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3} - target: {fileID: 5869475592065529047, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@ -1713,15 +1601,118 @@ PrefabInstance:
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 8257118877032255596, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
insertIndex: -1
addedObject: {fileID: 911236914}
- targetCorrespondingSourceObject: {fileID: 8257118877032255596, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
insertIndex: -1
addedObject: {fileID: 911236915}
- targetCorrespondingSourceObject: {fileID: 7848130704331449967, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3} - targetCorrespondingSourceObject: {fileID: 7848130704331449967, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
insertIndex: -1 insertIndex: -1
addedObject: {fileID: 0} addedObject: {fileID: 0}
m_SourcePrefab: {fileID: 100100000, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 3d1ff4c5c44ca15439fa1db9c5214989, type: 3}
--- !u!1001 &7548446348757859447
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1099441969732328810, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Name
value: GameManager
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalPosition.z
value: 90
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1878198276469643664, guid: d27075628330ae74082130fac9663ba3, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d27075628330ae74082130fac9663ba3, type: 3}
--- !u!1660057539 &9223372036854775807 --- !u!1660057539 &9223372036854775807
SceneRoots: SceneRoots:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_Roots: m_Roots:
- {fileID: 1716277275} - {fileID: 7548446348757859447}
- {fileID: 672375811} - {fileID: 672375811}
- {fileID: 111811052} - {fileID: 111811052}
- {fileID: 1406866842} - {fileID: 1406866842}

View File

@ -1,4 +1,5 @@
using UnityEngine; using Managers;
using UnityEngine;
namespace Components namespace Components
{ {
@ -8,8 +9,14 @@ namespace Components
public Crop crop; public Crop crop;
// Crop state // Crop state
public int currentGrowthStage;
public int isWatered; public int isWatered;
private SpriteRenderer _spriteRenderer;
public void Awake()
{
_spriteRenderer = GetComponent<SpriteRenderer>();
}
// Crop methods // Crop methods
public void Grow() public void Grow()
@ -20,11 +27,51 @@ namespace Components
public void Harvest() public void Harvest()
{ {
// Harvest the crop // Harvest the crop
Debug.Log("Harvesting Crop:" + crop.cropItem.itemName);
// add crop to inventory
var item = crop.cropItem;
PlayerManager.Instance.AddItemToInventorySlot(item);
// remove crop from tile
crop = null;
// delete visual
Destroy(gameObject);
} }
public void Water() public void Water()
{ {
// Water the crop // Water the crop
Debug.Log("Watering Crop");
crop.isWatered = true;
}
public bool isHarvestable()
{
// if crop has no values
return crop.isHarvestable();
}
public bool isToolRequired()
{
// if crop has no values
if (crop.validToolTypes == null || crop.validToolTypes.Count == 0)
return false;
return true;
}
public void SetCrop(Crop tileCrop)
{
crop = tileCrop;
// change the crop sprite
// change the crop material
if (_spriteRenderer != null && crop != null)
{
Debug.Log("CROP: SetCrop: " + crop.name + " Growth Stage: " + crop.currentGrowthStage);
_spriteRenderer.sprite = crop.growthSprites[crop.currentGrowthStage - 1];
}
} }
} }
} }

View File

@ -13,11 +13,8 @@ public class ItemComponent : MonoBehaviour
private void Awake() private void Awake()
{ {
nameText = transform.Find("ItemName").GetComponent<TMP_Text>();
if (nameText == null) Debug.LogError("ItemName not found"); if (nameText == null) Debug.LogError("ItemName not found");
quantityText = transform.Find("qty").GetComponent<Text>();
if (quantityText == null) Debug.LogError("qty not found"); if (quantityText == null) Debug.LogError("qty not found");
itemIcon = transform.Find("Icon").GetComponent<Image>();
if (itemIcon == null) Debug.LogError("Icon not found"); if (itemIcon == null) Debug.LogError("Icon not found");
itemHandler = gameObject.AddComponent<ItemHandler>(); itemHandler = gameObject.AddComponent<ItemHandler>();
@ -48,7 +45,8 @@ public class ItemComponent : MonoBehaviour
public void SetItem(GameItem newItem) public void SetItem(GameItem newItem)
{ {
// todo: Use the new Item to update the ItemName, Icon, qty // todo: Use the new Item to update the ItemName, Icon, qty
SetName(newItem.name); Debug.Log("Setting item, name: " + newItem.itemName);
SetName(newItem.itemName);
SetIcon(newItem.icon); SetIcon(newItem.icon);
SetQuantity(newItem.quantity); SetQuantity(newItem.quantity);
item = newItem; item = newItem;

View File

@ -134,7 +134,7 @@ public class SlotComponent : MonoBehaviour
// Addig onClick listener // Addig onClick listener
var button = transform.Find("WhiteBg").GetComponent<Button>(); var button = transform.Find("WhiteBg").GetComponent<Button>();
button.onClick.AddListener(slotHandler.TriggerOnClick); // button.onClick.AddListener(slotHandler.TriggerOnClick);
Debug.Log("Slot details set, added handler."); Debug.Log("Slot details set, added handler.");
} }

View File

@ -10,7 +10,7 @@ public class TileComponent : MonoBehaviour
public bool isOccupiedByCrop; public bool isOccupiedByCrop;
public bool isOccupiedByInteractableItem; public bool isOccupiedByInteractableItem;
public GridSpace gridSpace; public Tile tile;
public TMP_Text coordinatesText; public TMP_Text coordinatesText;
@ -33,6 +33,7 @@ public class TileComponent : MonoBehaviour
public void SetCoordinatesText() public void SetCoordinatesText()
{ {
coordinatesText = gameObject.transform.Find("Coord").GetComponent<TMP_Text>();
coordinatesText.text = x + "x" + y; coordinatesText.text = x + "x" + y;
} }
@ -46,13 +47,15 @@ public class TileComponent : MonoBehaviour
this.isOccupiedByInteractableItem = isOccupiedByInteractableItem; this.isOccupiedByInteractableItem = isOccupiedByInteractableItem;
} }
public void Initialize(GridSpace gSpace) public void Initialize(int posX, int posY, Tile gSpace)
{ {
gridSpace = gSpace; tile = gSpace;
x = posX;
y = posY;
// check if tile is occupied by crop or interactable item // check if tile is occupied by crop or interactable item
isOccupied = gridSpace != null; isOccupied = tile != null;
isOccupiedByCrop = gridSpace != null && gridSpace.Crop != null; isOccupiedByCrop = tile != null && tile.Crop != null;
isOccupiedByInteractableItem = gridSpace != null && gridSpace.InteractableItem != null; isOccupiedByInteractableItem = tile != null && tile.InteractableItem != null;
SetTile(x, y); SetTile(x, y);
SetCoordinatesText(); SetCoordinatesText();
DrawTileBorder(); DrawTileBorder();
@ -84,25 +87,6 @@ public class TileComponent : MonoBehaviour
private void DrawTileBorder() private void DrawTileBorder()
{ {
// Create a new GameObject for the border // add black border around tile
var border = new GameObject("Border");
// Add a LineRenderer component to the border
var lineRenderer = border.AddComponent<LineRenderer>();
// Set the material of the LineRenderer to the gridMaterial
// lineRenderer.material = gridMaterial;
// Set the positions of the LineRenderer to form a square around the tile
lineRenderer.positionCount = 5;
lineRenderer.SetPositions(new Vector3[]
{
new(transform.position.x, transform.position.y, 0),
new(transform.position.x + GridManager.Instance.tileSize, transform.position.y, 0),
new(transform.position.x + GridManager.Instance.tileSize,
transform.position.y + GridManager.Instance.tileSize, 0),
new(transform.position.x, transform.position.y + GridManager.Instance.tileSize, 0),
new(transform.position.x, transform.position.y, 0)
});
} }
} }

View File

@ -9,16 +9,39 @@ public class InventoryUIController : MonoBehaviour
public Transform itemParent; public Transform itemParent;
private readonly Dictionary<int, GameObject> _slots = new(); private readonly Dictionary<int, GameObject> _slots = new();
public static InventoryUIController Instance { get; private set; }
private void Awake()
{
if (Instance == null)
{
Instance = this;
DontDestroyOnLoad(gameObject);
}
else
{
Destroy(gameObject);
}
}
private void Start() private void Start()
{ {
Debug.Log("InventoryUI Start"); Debug.Log("InventoryUI Start");
if (itemParent == null) if (itemParent == null) Debug.LogWarning("ItemParent is null! Can not attach");
{ UpdateUI();
Debug.LogWarning("ItemParent is null! Can not attach");
return;
} }
public void ListChildren(GameObject parent)
{
foreach (Transform child in parent.transform) Debug.Log("Child: " + child.name);
}
public void UpdateUI()
{
// Clear existing slots
_slots.Clear();
// Get values from inventory and redraw the inventory slots based on that.
// Delete existing children if any. // Delete existing children if any.
foreach (Transform child in itemParent) Destroy(child.gameObject); foreach (Transform child in itemParent) Destroy(child.gameObject);
@ -45,15 +68,4 @@ public class InventoryUIController : MonoBehaviour
Debug.Log("Finished adding items to slots"); Debug.Log("Finished adding items to slots");
} }
public void ListChildren(GameObject parent)
{
foreach (Transform child in parent.transform) Debug.Log("Child: " + child.name);
}
public void UpdateUI()
{
// Get values from inventory and redraw the inventory slots based on that.
}
} }

View File

@ -0,0 +1,181 @@
using Components;
using UnityEngine;
using UnityEngine.EventSystems;
public class CropHandler : MonoBehaviour, IPointerDownHandler, IPointerClickHandler,
IPointerEnterHandler, IPointerExitHandler
{
public Material hoverMaterial;
private Collider2D _collider2D;
private Collider2D _localCollider2D;
private Material _originalMaterial;
private GameObject _player;
private Renderer _renderer;
private void Start()
{
_player = GameObject.Find("Player");
_localCollider2D = GetComponent<Collider2D>();
_collider2D = _player.GetComponent<Collider2D>();
_renderer = GetComponent<Renderer>();
if (_renderer == null)
_renderer = GetComponentInChildren<Renderer>();
if (_renderer == null)
Debug.LogError("CROP: No Renderer found on CropHandler");
Debug.Log("CROP: CropHandler Start Complete");
}
private void Update()
{
// if the crop is not visible, return
if (!_renderer.isVisible)
return;
// if the crop is visible and the player is above the crop, set the sortingOrder to 4
// Get the bounds of the player and the crop
var playerBounds = _collider2D.bounds;
var cropBounds = _localCollider2D.bounds;
if (playerBounds.min.y > cropBounds.min.y && playerBounds.min.y < cropBounds.max.y)
// Debug.Log("CROP: OnTriggerEnter2D: Bottom of player is inside crop");
_renderer.sortingOrder = 4;
// Check if the bottom of the player is inside the crop
if (playerBounds.max.y > cropBounds.min.y && playerBounds.max.y < cropBounds.max.y)
// Debug.Log("CROP: OnTriggerEnter2D: Top of player is inside crop");
_renderer.sortingOrder = 0;
// middle of the player is inside the crop
if (playerBounds.center.y > cropBounds.min.y && playerBounds.center.y < cropBounds.max.y)
// Debug.Log("CROP: OnTriggerEnter2D: Middle of player is inside crop");
_renderer.sortingOrder = 0;
}
/*private void OnTriggerEnter2D(Collider2D other)
{
Debug.Log("CROP: OnTriggerEnter2D");
Debug.Log("CROP: OnTriggerEnter2D: " + other.name);
if (other.CompareTag("Player"))
// if the player is coming from above the crop down the crop should be above the player
if (other.transform.position.y < transform.position.y)
{
Debug.Log("CROP: OnTriggerEnter2D: Player is below crop");
_renderer.sortingOrder = 4;
}
else
{
Debug.Log("CROP: OnTriggerEnter2D: Player is above crop");
_renderer.sortingOrder = 0;
}
// If the player is coming from the right of the crop, the crop should be above the player
if (other.transform.position.x > transform.position.x)
{
Debug.Log("CROP: OnTriggerEnter2D: Player is to the right of crop");
_renderer.sortingOrder = 4;
}
else
{
Debug.Log("CROP: OnTriggerEnter2D: Player is to the left of crop");
_renderer.sortingOrder = 0;
}
}*/
private void OnTriggerEnter2D(Collider2D other)
{
Debug.Log("CROP: OnTriggerEnter2D");
Debug.Log("CROP: OnTriggerEnter2D: " + other.name);
if (other.CompareTag("Player"))
{
_player = _player;
// Get the bounds of the player and the crop
var playerBounds = other.bounds;
var cropBounds = GetComponent<Collider2D>().bounds;
// Check if the top of the player is inside the crop
if (playerBounds.min.y > cropBounds.min.y && playerBounds.min.y < cropBounds.max.y)
{
Debug.Log("CROP: OnTriggerEnter2D: Bottom of player is inside crop");
_renderer.sortingOrder = 4;
}
// Check if the bottom of the player is inside the crop
if (playerBounds.max.y > cropBounds.min.y && playerBounds.max.y < cropBounds.max.y)
{
Debug.Log("CROP: OnTriggerEnter2D: Top of player is inside crop");
_renderer.sortingOrder = 0;
}
}
}
private void OnTriggerExit(Collider other)
{
// reset the sortingOrder
_renderer.sortingOrder = 0;
_player = null;
}
public void OnPointerClick(PointerEventData eventData)
{
Debug.Log("CROP: OnPointerClick");
var cropComponent = GetComponent<CropComponent>();
// if no tool is equipped
if (!cropComponent.isToolRequired())
{
if (!cropComponent.isHarvestable())
return;
cropComponent.Harvest();
return;
}
// should check what tool is equipped and active on the Hotbar.
var activeSlot = ToolbarManager.Instance.ActiveSlot;
// check if slot is tool
if (activeSlot.item is ToolItem tool)
// if the toolType is in the list from the crop
if (cropComponent.crop.validToolTypes.Contains(tool.toolType))
{
// check what tool it is and what action to take water or harvest
if (tool.toolType == ToolItem.ToolType.Watering)
{
cropComponent.Water();
return;
}
if (tool.toolType == ToolItem.ToolType.Harvesting)
{
if (!cropComponent.isHarvestable())
return;
cropComponent.Harvest();
}
}
}
public void OnPointerDown(PointerEventData eventData)
{
Debug.Log("CROP: OnPointerDown");
}
public void OnPointerEnter(PointerEventData eventData)
{
Debug.Log("CROP: OnPointerEnter");
// change the material of the crop to show it is selected
if (_renderer != null && hoverMaterial != null)
_originalMaterial = _renderer.material;
_renderer.material = hoverMaterial; // Change to hover material
}
public void OnPointerExit(PointerEventData eventData)
{
Debug.Log("CROP: OnPointerExit");
// change the material of the crop back to the original
if (_renderer != null && _originalMaterial != null)
Debug.Log("CROP: OnPointerExit: Changing Material");
_renderer.material = _originalMaterial; // Change to original material
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 7af21450edb54a7d96de3f4450867909
timeCreated: 1719431512

View File

@ -101,7 +101,7 @@ public class ItemHandler : MonoBehaviour, IPointerDownHandler, IBeginDragHandler
} }
// Debug.Log(transform.GetChild(1)); // Debug.Log(transform.GetChild(1));
transform.Find("ItemName").GetComponent<TMP_Text>().text = item.name; transform.Find("ItemName").GetComponent<TMP_Text>().text = item.itemName;
transform.Find("qty").GetComponent<Text>().text = item.quantity; transform.Find("qty").GetComponent<Text>().text = item.quantity;
transform.Find("Icon").GetComponent<Image>().sprite = item.icon; transform.Find("Icon").GetComponent<Image>().sprite = item.icon;

View File

@ -90,10 +90,6 @@ public class SlotHandler : MonoBehaviour, IDropHandler, IPointerClickHandler, IP
{ {
currentSlot.AssignItemComponent(sourceSlotItem); currentSlot.AssignItemComponent(sourceSlotItem);
sourceSlot.DeleteItem(); sourceSlot.DeleteItem();
// sourceSlotItem.transform.SetParent(transform, false);
// sourceSlotItem.GetComponent<RectTransform>().anchoredPosition = Vector2.zero;
// sourceSlotItem.GetComponent<RectTransform>().offsetMin = Vector2.zero;
// sourceSlotItem.GetComponent<RectTransform>().offsetMax = Vector2.zero;
} }
else else
{ {
@ -102,12 +98,6 @@ public class SlotHandler : MonoBehaviour, IDropHandler, IPointerClickHandler, IP
sourceSlotItem.DeleteItem(); sourceSlotItem.DeleteItem();
sourceSlot.AssignItemComponent(destinationItem); sourceSlot.AssignItemComponent(destinationItem);
destinationItem.DeleteItem(); destinationItem.DeleteItem();
// sourceSlotItem.transform.SetParent(transform, false);
// sourceSlotItem.GetComponent<RectTransform>().anchoredPosition = Vector2.zero;
// sourceSlotItem.GetComponent<RectTransform>().offsetMin = Vector2.zero;
// sourceSlotItem.GetComponent<RectTransform>().offsetMax = Vector2.zero;
} }
} }
@ -129,7 +119,6 @@ public class SlotHandler : MonoBehaviour, IDropHandler, IPointerClickHandler, IP
_pointerDownTimer = 0.0f; _pointerDownTimer = 0.0f;
} }
// onClick handler
public void TriggerOnClick() public void TriggerOnClick()
{ {
OnSlotClicked.Invoke(); OnSlotClicked.Invoke();

View File

@ -1,7 +1,7 @@
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
public class TileHandler : MonoBehaviour, IDropHandler, IPointerClickHandler public class TileHandler : MonoBehaviour, IDropHandler, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler
{ {
private void Awake() private void Awake()
{ {
@ -13,9 +13,24 @@ public class TileHandler : MonoBehaviour, IDropHandler, IPointerClickHandler
public void OnDrop(PointerEventData eventData) public void OnDrop(PointerEventData eventData)
{ {
Debug.Log("Dropped on Tile");
// what was dropped
// var droppedItem = eventData.pointerDrag.GetComponent<>().item;
// Debug.Log("Dropped Item: " + droppedItem.name);
} }
public void OnPointerClick(PointerEventData eventData) public void OnPointerClick(PointerEventData eventData)
{ {
Debug.Log("Tile Clicked!");
}
public void OnPointerEnter(PointerEventData eventData)
{
Debug.Log("Tile Hovered!");
}
public void OnPointerExit(PointerEventData eventData)
{
Debug.Log("Tile Unhovered!");
} }
} }

View File

@ -1,36 +1,57 @@
using UnityEngine; using UnityEngine;
// Crop Manager should load all of the crops similar to the item manager.
// We should be able to get a crop by its ID and also get a random crop.
// We should also be able to get a crop by its name.
public class CropManager : MonoBehaviour public class CropManager : MonoBehaviour
{ {
private Crop[,] cropGrid; public Crop[] crops;
public static CropManager Instance { get; private set; } public static CropManager Instance { get; private set; }
private void Awake() private void Awake()
{ {
if (Instance == null) if (Instance == null)
{
Instance = this; Instance = this;
DontDestroyOnLoad(gameObject);
LoadCrops();
}
else else
{
Destroy(gameObject); Destroy(gameObject);
}
cropGrid = new Crop[32, 32];
} }
public void PlantCrop(Crop crop, int x, int y) public Crop GetCropById(int id)
{ {
// Add the crop to the grid return crops[id];
cropGrid[x, y] = crop;
// Update the crop's position in the world
// todo: fix this tranform
// crop.transform.position = new Vector3(x, y, 0);
} }
public Crop HarvestCrop(int x, int y) public Crop GetCropByName(string name)
{ {
// Remove the crop from the grid foreach (var crop in crops)
var crop = cropGrid[x, y]; if (crop.cropItem.name == name)
cropGrid[x, y] = null;
return crop; return crop;
return null;
}
// Get a random crop
public Crop GetRandomCrop()
{
return crops[Random.Range(0, crops.Length - 1)];
}
// Get all the crops from the resource folder
public void LoadCrops()
{
Debug.Log("Loading crops from Resources/Crops");
crops = Resources.LoadAll<Crop>("Crops");
foreach (var crop in crops) Debug.Log("Loaded crop: " + crop.cropItem.name);
} }
} }

View File

@ -1,4 +1,5 @@
using System.Collections.Generic; using System.Collections.Generic;
using Components;
using UnityEngine; using UnityEngine;
public class InteractableItem public class InteractableItem
@ -8,7 +9,7 @@ public class InteractableItem
public class GridManager : MonoBehaviour public class GridManager : MonoBehaviour
{ {
public int tileSize = 32; public int tileSize = 1; // my grid is set to 32x32 and so that is 1 in unity, ok huh.
private readonly Dictionary<string, Grid> _grids = new(); private readonly Dictionary<string, Grid> _grids = new();
public static GridManager Instance { get; private set; } public static GridManager Instance { get; private set; }
@ -54,26 +55,56 @@ public class GridManager : MonoBehaviour
// Update your other methods to take a mapName parameter and operate on the correct grid // Update your other methods to take a mapName parameter and operate on the correct grid
public void LoadGrid(string currentMapSceneName) public void LoadGrid(string currentMapSceneName)
{ {
Debug.Log("Loading grid: " + currentMapSceneName); Debug.Log("GRID: Loading grid: " + currentMapSceneName);
if (_grids.TryGetValue(currentMapSceneName, out var grid)) if (_grids.TryGetValue(currentMapSceneName, out var grid))
{ {
Debug.Log("Grid found for map: " + currentMapSceneName); Debug.Log("GRID: Grid found for map: " + currentMapSceneName);
Debug.Log("GRID: Size: " + grid.size.x + ", " + grid.size.y);
// Create a parent object for the grid
var gridParent = new GameObject("Grid");
// gridParent.transform.position = Vector3.zero;
var mapParent = GameObject.FindGameObjectWithTag("Map");
if (mapParent != null) gridParent.transform.SetParent(mapParent.transform);
Instantiate(gridParent, new Vector3(0, 0, 0), Quaternion.identity);
// Load the grid by looping through the grid's tiles // Load the grid by looping through the grid's tiles
for (var x = 0; x < grid.size.x; x++) for (var x = 0; x < grid.size.x; x++)
for (var y = 0; y < grid.size.y; y++) for (var y = 0; y < grid.size.y; y++)
{ {
// Load the tile at position (x, y) // Load the tile at position (x, y)
Debug.Log("Loading tile at position: " + x + ", " + y); Debug.Log("GRID: Loading tile at position: " + x + ", " + y);
var tile = ScriptableObject.CreateInstance<GridSpace>();
var tile = ScriptableObject.CreateInstance<Tile>();
tile.Initialize(new Vector2Int(x, y)); tile.Initialize(new Vector2Int(x, y));
var crop = CropManager.Instance.GetRandomCrop();
var randomCropItem = GameItemManager.Instance.GetRandomCategoryItem(GameItem.ItemType.Crop);
crop.setCropItem(randomCropItem);
tile.SetCrop(crop);
grid.SetTile(x, y, tile); grid.SetTile(x, y, tile);
var tilePrefab = PrefabManager.Instance.GetTilePrefab();
var tileObject = Instantiate(tilePrefab, new Vector3(x * tileSize, -y * tileSize, 0),
Quaternion.identity);
tileObject.name = $"Tile_{x}_{y}";
tileObject.transform.SetParent(gridParent.transform);
var tileComponent = tileObject.GetComponent<TileComponent>();
tileComponent.Initialize(x, y, tile);
// get Crop prefab and instantiate it at the center of its new parent tile
var cropPrefab = PrefabManager.Instance.GetCropPrefab();
var cropObject = Instantiate(cropPrefab, tileObject.transform.position, Quaternion.identity);
var cropComponent = cropObject.GetComponent<CropComponent>();
cropComponent.SetCrop(tile.Crop);
cropObject.name = $"Crop_{x}_{y}";
cropObject.transform.SetParent(tileObject.transform);
} }
} }
else else
{ {
Debug.LogError("No grid found for map: " + currentMapSceneName); Debug.LogError("GRID: No grid found for map: " + currentMapSceneName);
} }
} }
} }

View File

@ -1,3 +1,11 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 485a16bcfbf74c7c8f289519efc1979c guid: 485a16bcfbf74c7c8f289519efc1979c
timeCreated: 1719331600 MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 253
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -54,11 +54,11 @@ public class BoxManager : MonoBehaviour, IItemManager<Slot>
if (slot.IsEmpty()) if (slot.IsEmpty())
{ {
slot.item = item; slot.item = item;
Debug.Log("Added item to slot: " + slot.slotId + " / " + item.name); Debug.Log("Added item to slot: " + slot.slotId + " / " + item.itemName);
return; return;
} }
Debug.LogWarning("No empty slots available to add item: " + item.name); Debug.LogWarning("No empty slots available to add item: " + item.itemName);
} }
public void RemoveItemFromSlot(int slotId) public void RemoveItemFromSlot(int slotId)
@ -94,11 +94,11 @@ public class BoxManager : MonoBehaviour, IItemManager<Slot>
if (slot.item == item) if (slot.item == item)
{ {
slot.item = null; slot.item = null;
Debug.Log("Removed item from slot: " + item.name); Debug.Log("Removed item from slot: " + item.itemName);
return; return;
} }
Debug.LogWarning("Item not found in any slot: " + item.name); Debug.LogWarning("Item not found in any slot: " + item.itemName);
} }
public void RemoveItemInSlot(int slotId) public void RemoveItemInSlot(int slotId)

Some files were not shown because too many files have changed in this diff Show More