ContainerCounter
parent
39329ba7cb
commit
4f755637c8
@ -0,0 +1,420 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &2295297556829886965
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 160166231906081607, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ContainerCounter
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: -180
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects:
|
||||
- targetCorrespondingSourceObject: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 7057229009926229326}
|
||||
- targetCorrespondingSourceObject: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 8849412208764645339}
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 160166231906081607, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 9135689135718850705}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: baedeb81787a01d4d84373499280a841, type: 3}
|
||||
--- !u!1 &2153721870387282610 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 160166231906081607, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2295297556829886965}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &9135689135718850705
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2153721870387282610}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b4662711e6e0b174992670a8d40e14f7, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
counterTopPoint: {fileID: 2952229747726900034}
|
||||
kitchenObjectSo: {fileID: 11400000, guid: 85a2a73f76ad0af458de1ea0f8aee734, type: 2}
|
||||
--- !u!4 &2952229747726900034 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 3972990330611991223, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2295297556829886965}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &8951620954509349091 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7196755653897210134, guid: baedeb81787a01d4d84373499280a841,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2295297556829886965}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &5007614122553412464
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 8951620954509349091}
|
||||
m_Modifications:
|
||||
- target: {fileID: 102550813385737453, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 353237590725857035, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2298542010046885598, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: 'm_Materials.Array.data[0]'
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 1a0afd856a35421469b28b916116fd9c, type: 2}
|
||||
- target: {fileID: 4589716710238282922, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Selected
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 1.01
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 1.01
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 1.01
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_ConstrainProportionsScale
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5850129231471598083, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: 'm_Materials.Array.data[0]'
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 1a0afd856a35421469b28b916116fd9c, type: 2}
|
||||
- target: {fileID: 7638390755804248883, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: 'm_Materials.Array.data[0]'
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 1a0afd856a35421469b28b916116fd9c, type: 2}
|
||||
- target: {fileID: 7816906318471787887, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8143070647044102886, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8609693441769329850, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: 'm_Materials.Array.data[0]'
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: 1a0afd856a35421469b28b916116fd9c, type: 2}
|
||||
m_RemovedComponents:
|
||||
- {fileID: 6289625630049244101, guid: 9a9137fa2b035d34e881701d2c178192, type: 3}
|
||||
m_RemovedGameObjects:
|
||||
- {fileID: 5261771210811040880, guid: 9a9137fa2b035d34e881701d2c178192, type: 3}
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 4589716710238282922, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 5273238279198879052}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 9a9137fa2b035d34e881701d2c178192, type: 3}
|
||||
--- !u!1 &2955949474742205983 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7816906318471787887, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5007614122553412464}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &3782848998910448022 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 8143070647044102886, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5007614122553412464}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &4726647882512401531 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 353237590725857035, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5007614122553412464}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &4905207144410664861 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 102550813385737453, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5007614122553412464}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &8849412208764645338 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 4589716710238282922, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5007614122553412464}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &5273238279198879052
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8849412208764645338}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8b85903dace450642b90692dcac31e5f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
baseCounter: {fileID: 9135689135718850705}
|
||||
visualGameObjectArray:
|
||||
- {fileID: 2955949474742205983}
|
||||
- {fileID: 3782848998910448022}
|
||||
- {fileID: 4726647882512401531}
|
||||
- {fileID: 4905207144410664861}
|
||||
--- !u!4 &8849412208764645339 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5007614122553412464}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &6791889359157160421
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 8951620954509349091}
|
||||
m_Modifications:
|
||||
- target: {fileID: 4589716710238282922, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ContainerCounter_Visual
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4841286013473667211, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
propertyPath: m_Sprite
|
||||
value:
|
||||
objectReference: {fileID: 21300000, guid: 91e8fe3de9249fc44b7bdd8050062896,
|
||||
type: 3}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 4589716710238282922, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 6348349681407810283}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 9a9137fa2b035d34e881701d2c178192, type: 3}
|
||||
--- !u!4 &7057229009926229326 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 4589716710238282923, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 6791889359157160421}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &7057229009926229327 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 4589716710238282922, guid: 9a9137fa2b035d34e881701d2c178192,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 6791889359157160421}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &6348349681407810283
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7057229009926229327}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 19d08aa497c5c2a44b8dd7a6bdcbdad0, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
containerCounter: {fileID: 9135689135718850705}
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7e7865ed0fe597142814007f7b78d731
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,87 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &160166231906081607
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7196755653897210134}
|
||||
- component: {fileID: 4837936127893396492}
|
||||
m_Layer: 6
|
||||
m_Name: _BaseCounter
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &7196755653897210134
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 160166231906081607}
|
||||
m_LocalRotation: {x: 0, y: -1, z: 0, w: 0}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 2.79}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 3972990330611991223}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: -180, z: 0}
|
||||
--- !u!65 &4837936127893396492
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 160166231906081607}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 0
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 1.5, y: 1.5, z: 1.5}
|
||||
m_Center: {x: 0, y: 0.5, z: 0}
|
||||
--- !u!1 &3648195796242102822
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3972990330611991223}
|
||||
m_Layer: 6
|
||||
m_Name: CounterTopPoint
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3972990330611991223
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3648195796242102822}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1.3, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 7196755653897210134}
|
||||
m_RootOrder: -1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: baedeb81787a01d4d84373499280a841
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class BaseCounter : MonoBehaviour, IKitchenObjectParent
|
||||
{
|
||||
[SerializeField] private Transform counterTopPoint;
|
||||
private KitchenObject kitchenObject;
|
||||
|
||||
public virtual void Interact(Player player) => Debug.LogError("BaseCounter.Interact()");
|
||||
public Transform GetKitchenObjectFollowTransform() => counterTopPoint;
|
||||
public void SetKitchenObject(KitchenObject kO) => kitchenObject = kO;
|
||||
public KitchenObject GetKitchenObject() => kitchenObject;
|
||||
public void ClearKitchenObject() => kitchenObject = null;
|
||||
public bool HasKitchenObject() => kitchenObject != null;
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c753155742bcb4d48b580a61c50b94d6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,34 +1,12 @@
|
||||
using UnityEngine;
|
||||
using Vector3 = UnityEngine.Vector3;
|
||||
|
||||
public class ClearCounter : MonoBehaviour
|
||||
public class ClearCounter : BaseCounter
|
||||
{
|
||||
private KitchenObject kitchenObject;
|
||||
|
||||
[SerializeField] private KitchenObjectSo kitchenObjectSo;
|
||||
[SerializeField] private Transform counterTopPoint;
|
||||
[SerializeField] private KitchenObjectSO kitchenObjectSo;
|
||||
|
||||
public void Interact(Player player)
|
||||
public override void Interact(Player player)
|
||||
{
|
||||
if (kitchenObject == null)
|
||||
{
|
||||
Transform kitchenObjectTransform = Instantiate(kitchenObjectSo.prefab, counterTopPoint);
|
||||
kitchenObjectTransform.GetComponent<KitchenObject>().ClearCounter = this;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Give the object to the player
|
||||
kitchenObject.ClearCounter = player;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public Transform GetKitchenObjectFollowTransform() => counterTopPoint;
|
||||
|
||||
public void SetKitchenObject(KitchenObject kO) => kitchenObject = kO;
|
||||
|
||||
public KitchenObject GetKitchenObject() => kitchenObject;
|
||||
|
||||
public void ClearKitchenObject() => kitchenObject = null;
|
||||
public bool HasKitchenObject() => kitchenObject != null;
|
||||
}
|
||||
|
||||
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class ContainerCounter : BaseCounter
|
||||
{
|
||||
public event EventHandler OnPlayerGrabbedObject;
|
||||
[SerializeField] private KitchenObjectSO kitchenObjectSo;
|
||||
|
||||
public override void Interact(Player player)
|
||||
{
|
||||
if (!HasKitchenObject())
|
||||
{
|
||||
Transform kitchenObjectTransform = Instantiate(kitchenObjectSo.prefab);
|
||||
kitchenObjectTransform.GetComponent<KitchenObject>().SetKitchenObjectParent(player);
|
||||
OnPlayerGrabbedObject?.Invoke(this,EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b4662711e6e0b174992670a8d40e14f7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class ContainerCounterVisual : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private ContainerCounter containerCounter;
|
||||
private Animator animator;
|
||||
private static readonly int openClose = Animator.StringToHash("OpenClose");
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
animator = GetComponent<Animator>();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
containerCounter.OnPlayerGrabbedObject += ContainerCounbter_OnPlayerGrabbedObject;
|
||||
}
|
||||
|
||||
private void ContainerCounbter_OnPlayerGrabbedObject(object sender, EventArgs e)
|
||||
{
|
||||
animator.SetTrigger(openClose);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19d08aa497c5c2a44b8dd7a6bdcbdad0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
public interface IKitchenObjectParent
|
||||
{
|
||||
public Transform GetKitchenObjectFollowTransform();
|
||||
public void SetKitchenObject(KitchenObject kitchenObject);
|
||||
public KitchenObject GetKitchenObject();
|
||||
public void ClearKitchenObject();
|
||||
public bool HasKitchenObject();
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 818764d312cedc046828a74096139898
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,26 +1,35 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
public class KitchenObject : MonoBehaviour
|
||||
{
|
||||
private ClearCounter clearCounter;
|
||||
public ClearCounter ClearCounter
|
||||
[SerializeField] private KitchenObjectSO kitchenObjectSo;
|
||||
private IKitchenObjectParent kitchenObjectParent;
|
||||
|
||||
public KitchenObjectSO GetKitchenObjectSo()
|
||||
{
|
||||
get => clearCounter;
|
||||
set
|
||||
{
|
||||
if (clearCounter != null) clearCounter.ClearKitchenObject();
|
||||
clearCounter = value;
|
||||
if (clearCounter.HasKitchenObject())
|
||||
Debug.LogError("Counter already has a KitchenObject");
|
||||
else
|
||||
clearCounter.SetKitchenObject(this);
|
||||
transform.parent = clearCounter.GetKitchenObjectFollowTransform();
|
||||
transform.localPosition = Vector3.zero;
|
||||
}
|
||||
return kitchenObjectSo;
|
||||
}
|
||||
[SerializeField] private KitchenObjectSo kitchenObjectSo;
|
||||
|
||||
public KitchenObjectSo GetKitchenObjectSo() => kitchenObjectSo;
|
||||
public void SetKitchenObjectParent(IKitchenObjectParent kitchenObjectParent)
|
||||
{
|
||||
kitchenObjectParent?.ClearKitchenObject();
|
||||
|
||||
this.kitchenObjectParent = kitchenObjectParent;
|
||||
|
||||
if (kitchenObjectParent.HasKitchenObject())
|
||||
Debug.LogError("IKitchenObjectParent already has a KitchenObject");
|
||||
|
||||
kitchenObjectParent.SetKitchenObject(this);
|
||||
|
||||
transform.parent = kitchenObjectParent.GetKitchenObjectFollowTransform();
|
||||
transform.localPosition = Vector3.zero;
|
||||
}
|
||||
|
||||
public IKitchenObjectParent GetKitchenObjectParent()
|
||||
{
|
||||
return kitchenObjectParent;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,10 @@
|
||||
{ "pid": 35942, "tid": -1, "ph": "M", "name": "process_name", "args": { "name": "netcorerun.dll" } },
|
||||
{ "pid": 35942, "tid": -1, "ph": "M", "name": "process_sort_index", "args": { "sort_index": "-1" } },
|
||||
{ "pid": 35942, "tid": 1, "ph": "M", "name": "thread_name", "args": { "name": "" } },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675249864398304, "dur": 631194, "ph": "X", "name": "BuildProgram", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675249864399791, "dur": 81926, "ph": "X", "name": "BuildProgramContextConstructor", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675249864916025, "dur": 5291, "ph": "X", "name": "OutputData.Write", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675249864921320, "dur": 108165, "ph": "X", "name": "Backend.Write", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675249864923467, "dur": 74988, "ph": "X", "name": "JsonToString", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675249865038694, "dur": 1506, "ph": "X", "name": "", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675249865038060, "dur": 2388, "ph": "X", "name": "Write chrome-trace events", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675258781044121, "dur": 945489, "ph": "X", "name": "BuildProgram", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675258781045418, "dur": 138099, "ph": "X", "name": "BuildProgramContextConstructor", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675258781849269, "dur": 5578, "ph": "X", "name": "OutputData.Write", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675258781854852, "dur": 134742, "ph": "X", "name": "Backend.Write", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675258781856855, "dur": 97933, "ph": "X", "name": "JsonToString", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675258782002803, "dur": 2242, "ph": "X", "name": "", "args": {} },
|
||||
{ "pid": 35942, "tid": 1, "ts": 1675258782002057, "dur": 3333, "ph": "X", "name": "Write chrome-trace events", "args": {} },
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
7c7b6fac6cdbbe7118c307f2ef19e766
|
||||
bc986491a0ef6ef2c18a66ea1fc6ba6d
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue