Add chest saving manager system for user items
This commit is contained in:
parent
ce358dafcb
commit
1794b60fb0
@ -48,15 +48,19 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Assets\Scripts\RespawnScript.cs" />
|
<Compile Include="Assets\Scripts\RespawnScript.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\SceneManager\SaveChest\SaveChestSystem.cs" />
|
||||||
<Compile Include="Assets\Scripts\SceneManager\SceneTaskManager.cs" />
|
<Compile Include="Assets\Scripts\SceneManager\SceneTaskManager.cs" />
|
||||||
<Compile Include="Assets\Scripts\SettingsButton.cs" />
|
<Compile Include="Assets\Scripts\SettingsButton.cs" />
|
||||||
<Compile Include="Assets\Scripts\UI\ISlot.cs" />
|
<Compile Include="Assets\Scripts\UI\ISlot.cs" />
|
||||||
<Compile Include="Assets\Scripts\Enemies' Scprits\Enemy.cs" />
|
<Compile Include="Assets\Scripts\Enemies' Scprits\Enemy.cs" />
|
||||||
<Compile Include="Assets\Scripts\Objects\GoldOre.cs" />
|
<Compile Include="Assets\Scripts\Objects\GoldOre.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\SceneManager\SaveChest\ChestPrefarbAsset.cs" />
|
||||||
<Compile Include="Assets\closePossibleButtonInfo.cs" />
|
<Compile Include="Assets\closePossibleButtonInfo.cs" />
|
||||||
<Compile Include="Assets\BreakOre.cs" />
|
<Compile Include="Assets\BreakOre.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\SceneManager\SceneChestManager.cs" />
|
||||||
<Compile Include="Assets\Scripts\Inventory\InventorySlot.cs" />
|
<Compile Include="Assets\Scripts\Inventory\InventorySlot.cs" />
|
||||||
<Compile Include="Assets\Scripts\Task\TaskPanelController.cs" />
|
<Compile Include="Assets\Scripts\Task\TaskPanelController.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\SceneManager\SaveChest\ChestPrefarbAssetData.cs" />
|
||||||
<Compile Include="Assets\Scripts\Task\TaskManager.cs" />
|
<Compile Include="Assets\Scripts\Task\TaskManager.cs" />
|
||||||
<Compile Include="Assets\Scripts\QuitGame.cs" />
|
<Compile Include="Assets\Scripts\QuitGame.cs" />
|
||||||
<Compile Include="Assets\Scripts\SceneManager\SaveItem\EquippableItemData\EquippableItemData.cs" />
|
<Compile Include="Assets\Scripts\SceneManager\SaveItem\EquippableItemData\EquippableItemData.cs" />
|
||||||
@ -64,6 +68,7 @@
|
|||||||
<Compile Include="Assets\Scripts\Knockback.cs" />
|
<Compile Include="Assets\Scripts\Knockback.cs" />
|
||||||
<Compile Include="Assets\Scripts\Inventory\InventoryManager.cs" />
|
<Compile Include="Assets\Scripts\Inventory\InventoryManager.cs" />
|
||||||
<Compile Include="Assets\Scripts\SceneManager\SaveTask\SaveQuestSystem.cs" />
|
<Compile Include="Assets\Scripts\SceneManager\SaveTask\SaveQuestSystem.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\SceneManager\SaveInventory\SaveInventorySystem.cs" />
|
||||||
<Compile Include="Assets\Scripts\Dialogue.cs" />
|
<Compile Include="Assets\Scripts\Dialogue.cs" />
|
||||||
<Compile Include="Assets\Scripts\SceneManager\SaveItem\ItemData\ItemData.cs" />
|
<Compile Include="Assets\Scripts\SceneManager\SaveItem\ItemData\ItemData.cs" />
|
||||||
<Compile Include="Assets\Scripts\Item\ItemSlot.cs" />
|
<Compile Include="Assets\Scripts\Item\ItemSlot.cs" />
|
||||||
@ -101,6 +106,7 @@
|
|||||||
<Compile Include="Assets\Scripts\DoorBehaviour.cs" />
|
<Compile Include="Assets\Scripts\DoorBehaviour.cs" />
|
||||||
<Compile Include="Assets\Scripts\SceneManager\SaveItem\EquippableItemPrefarbAsset.cs" />
|
<Compile Include="Assets\Scripts\SceneManager\SaveItem\EquippableItemPrefarbAsset.cs" />
|
||||||
<Compile Include="Assets\Scripts\Enemies' Scprits\PatrollingEnemy.cs" />
|
<Compile Include="Assets\Scripts\Enemies' Scprits\PatrollingEnemy.cs" />
|
||||||
|
<Compile Include="Assets\Scripts\SceneManager\SceneInventoryManager.cs" />
|
||||||
<Compile Include="Assets\Scripts\Chest\ChestPanelController.cs" />
|
<Compile Include="Assets\Scripts\Chest\ChestPanelController.cs" />
|
||||||
<Compile Include="Assets\Scripts\Inventory\InventoryPanelController.cs" />
|
<Compile Include="Assets\Scripts\Inventory\InventoryPanelController.cs" />
|
||||||
<Compile Include="Assets\TakingDamage.cs" />
|
<Compile Include="Assets\TakingDamage.cs" />
|
||||||
|
8
Assets/Items/Chest.meta
Normal file
8
Assets/Items/Chest.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6128718e99d8ba7449f7e6170173fa95
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
199
Assets/Items/Chest/Gold Chest.prefab
Normal file
199
Assets/Items/Chest/Gold Chest.prefab
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &805898524
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 805898525}
|
||||||
|
- component: {fileID: 805898527}
|
||||||
|
- component: {fileID: 805898526}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Chest1-InteractionMSG
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &805898525
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 805898524}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0.095890045, y: -0.058502197, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4669568061092186073}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!58 &805898527
|
||||||
|
CircleCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 805898524}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_UsedByEffector: 0
|
||||||
|
m_UsedByComposite: 0
|
||||||
|
m_Offset: {x: -0.021246195, y: -0.084985375}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 1.7960162
|
||||||
|
--- !u!114 &805898526
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 805898524}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 19883581ad8bbd9458fc7bc8c4bb3279, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Panel: {fileID: 1131349084736352762, guid: bd644a38094b0334b979c0234699f069, type: 3}
|
||||||
|
OtherPanel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
||||||
|
SecondPanel: {fileID: 4888099765917562817, guid: c5397665a1fef4d4e8de420a7ee4ad74, type: 3}
|
||||||
|
PanelAbove: {fileID: 4787883790006063180, guid: b224f3239791233448271af67a076b03, type: 3}
|
||||||
|
_tmpPanel: {fileID: 0}
|
||||||
|
_tmpOtherPanel: {fileID: 0}
|
||||||
|
_tmpSecondPanel: {fileID: 0}
|
||||||
|
_tmpPanelAbove: {fileID: 0}
|
||||||
|
obj: {fileID: 4669568061092186072}
|
||||||
|
isAllowedToShowPanels: 1
|
||||||
|
--- !u!1 &4669568061092186072
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4669568061092186073}
|
||||||
|
- component: {fileID: 4669568061092186078}
|
||||||
|
- component: {fileID: 4669568061092186079}
|
||||||
|
- component: {fileID: 4669568061092186076}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Gold Chest
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4669568061092186073
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4669568061092186072}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 58.59589, y: 32.941498, z: 20}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 805898525}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!212 &4669568061092186078
|
||||||
|
SpriteRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4669568061092186072}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 0
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
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: 1
|
||||||
|
m_Sprite: {fileID: 3423162062024585544, guid: 7aa335ae36a8a8a478192b6105ddf5ab, type: 3}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_FlipX: 0
|
||||||
|
m_FlipY: 0
|
||||||
|
m_DrawMode: 0
|
||||||
|
m_Size: {x: 0.95, y: 0.9}
|
||||||
|
m_AdaptiveModeThreshold: 0.5
|
||||||
|
m_SpriteTileMode: 0
|
||||||
|
m_WasSpriteAssigned: 1
|
||||||
|
m_MaskInteraction: 0
|
||||||
|
m_SpriteSortPoint: 0
|
||||||
|
--- !u!61 &4669568061092186079
|
||||||
|
BoxCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4669568061092186072}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
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: 0.95, y: 0.9}
|
||||||
|
newSize: {x: 0.95, y: 0.9}
|
||||||
|
adaptiveTilingThreshold: 0.5
|
||||||
|
drawMode: 0
|
||||||
|
adaptiveTiling: 0
|
||||||
|
m_AutoTiling: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 0.95, y: 0.9}
|
||||||
|
m_EdgeRadius: 0
|
||||||
|
--- !u!114 &4669568061092186076
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4669568061092186072}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 26a44ba4cba1985408fca11ba424361c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
_panel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
||||||
|
isOpen: 0
|
||||||
|
chest: {fileID: 0}
|
||||||
|
developerList: []
|
7
Assets/Items/Chest/Gold Chest.prefab.meta
Normal file
7
Assets/Items/Chest/Gold Chest.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5cf1cdd5626b6894f824d7c7edcdc166
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
199
Assets/Items/Chest/Prize Chest.prefab
Normal file
199
Assets/Items/Chest/Prize Chest.prefab
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &584661737
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 584661738}
|
||||||
|
- component: {fileID: 584661740}
|
||||||
|
- component: {fileID: 584661739}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Chest0-InteractionMSG
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &584661738
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 584661737}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0.19999695, z: -1.8041458}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 5754902894522036728}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!58 &584661740
|
||||||
|
CircleCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 584661737}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_UsedByEffector: 0
|
||||||
|
m_UsedByComposite: 0
|
||||||
|
m_Offset: {x: -0.058876753, y: -0.084985375}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 1.8336468
|
||||||
|
--- !u!114 &584661739
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 584661737}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 19883581ad8bbd9458fc7bc8c4bb3279, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Panel: {fileID: 1131349084736352762, guid: bd644a38094b0334b979c0234699f069, type: 3}
|
||||||
|
OtherPanel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
||||||
|
SecondPanel: {fileID: 4888099765917562817, guid: c5397665a1fef4d4e8de420a7ee4ad74, type: 3}
|
||||||
|
PanelAbove: {fileID: 4787883790006063180, guid: b224f3239791233448271af67a076b03, type: 3}
|
||||||
|
_tmpPanel: {fileID: 0}
|
||||||
|
_tmpOtherPanel: {fileID: 0}
|
||||||
|
_tmpSecondPanel: {fileID: 0}
|
||||||
|
_tmpPanelAbove: {fileID: 0}
|
||||||
|
obj: {fileID: 5754902894522036729}
|
||||||
|
isAllowedToShowPanels: 1
|
||||||
|
--- !u!1 &5754902894522036729
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5754902894522036728}
|
||||||
|
- component: {fileID: 5754902894522036731}
|
||||||
|
- component: {fileID: 5754902894522036730}
|
||||||
|
- component: {fileID: 5754902894522036733}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Prize Chest
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &5754902894522036728
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5754902894522036729}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 16, y: 51.2, z: 18.195854}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 584661738}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!212 &5754902894522036731
|
||||||
|
SpriteRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5754902894522036729}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 0
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
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: 1
|
||||||
|
m_Sprite: {fileID: -471958427270782953, guid: 7aa335ae36a8a8a478192b6105ddf5ab, 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.35, y: 1.1}
|
||||||
|
m_AdaptiveModeThreshold: 0.5
|
||||||
|
m_SpriteTileMode: 0
|
||||||
|
m_WasSpriteAssigned: 1
|
||||||
|
m_MaskInteraction: 0
|
||||||
|
m_SpriteSortPoint: 0
|
||||||
|
--- !u!61 &5754902894522036730
|
||||||
|
BoxCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5754902894522036729}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
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.35, y: 1.1}
|
||||||
|
newSize: {x: 1.35, y: 1.1}
|
||||||
|
adaptiveTilingThreshold: 0.5
|
||||||
|
drawMode: 0
|
||||||
|
adaptiveTiling: 0
|
||||||
|
m_AutoTiling: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 1.35, y: 1.1}
|
||||||
|
m_EdgeRadius: 0
|
||||||
|
--- !u!114 &5754902894522036733
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5754902894522036729}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 26a44ba4cba1985408fca11ba424361c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
_panel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
||||||
|
isOpen: 0
|
||||||
|
chest: {fileID: 0}
|
||||||
|
developerList: []
|
7
Assets/Items/Chest/Prize Chest.prefab.meta
Normal file
7
Assets/Items/Chest/Prize Chest.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3c4c4514921bad449bbfab46d86ee881
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
226
Assets/Items/Chest/Wooden Chest.prefab
Normal file
226
Assets/Items/Chest/Wooden Chest.prefab
Normal file
@ -0,0 +1,226 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &1698721846
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1698721847}
|
||||||
|
- component: {fileID: 1698721849}
|
||||||
|
- component: {fileID: 1698721848}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Chest3-InteractionMSG
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1698721847
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1698721846}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 3972494989842158580}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!58 &1698721849
|
||||||
|
CircleCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1698721846}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_UsedByEffector: 0
|
||||||
|
m_UsedByComposite: 0
|
||||||
|
m_Offset: {x: -0.021246195, y: -0.084985375}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 1.7960162
|
||||||
|
--- !u!114 &1698721848
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1698721846}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 19883581ad8bbd9458fc7bc8c4bb3279, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Panel: {fileID: 1131349084736352762, guid: bd644a38094b0334b979c0234699f069, type: 3}
|
||||||
|
OtherPanel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
||||||
|
SecondPanel: {fileID: 4888099765917562817, guid: c5397665a1fef4d4e8de420a7ee4ad74, type: 3}
|
||||||
|
PanelAbove: {fileID: 4787883790006063180, guid: b224f3239791233448271af67a076b03, type: 3}
|
||||||
|
_tmpPanel: {fileID: 0}
|
||||||
|
_tmpOtherPanel: {fileID: 0}
|
||||||
|
_tmpSecondPanel: {fileID: 0}
|
||||||
|
_tmpPanelAbove: {fileID: 0}
|
||||||
|
obj: {fileID: 3972494989842158579}
|
||||||
|
isAllowedToShowPanels: 1
|
||||||
|
--- !u!1 &3972494989842158579
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3972494989842158580}
|
||||||
|
- component: {fileID: 3972494989842158473}
|
||||||
|
- component: {fileID: 3972494989842158583}
|
||||||
|
- component: {fileID: 3972494989842158582}
|
||||||
|
- component: {fileID: 3972494989842158581}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Wooden Chest
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3972494989842158580
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3972494989842158579}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -8.45, y: -3.9, z: 10}
|
||||||
|
m_LocalScale: {x: 0.5, y: 0.5, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 1698721847}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!212 &3972494989842158473
|
||||||
|
SpriteRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3972494989842158579}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 0
|
||||||
|
m_ReceiveShadows: 0
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 0
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
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: 1382705155
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_Sprite: {fileID: 2424983929796287158, guid: 7aa335ae36a8a8a478192b6105ddf5ab, type: 3}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_FlipX: 0
|
||||||
|
m_FlipY: 0
|
||||||
|
m_DrawMode: 0
|
||||||
|
m_Size: {x: 0.95, y: 0.9}
|
||||||
|
m_AdaptiveModeThreshold: 0.5
|
||||||
|
m_SpriteTileMode: 0
|
||||||
|
m_WasSpriteAssigned: 1
|
||||||
|
m_MaskInteraction: 0
|
||||||
|
m_SpriteSortPoint: 0
|
||||||
|
--- !u!61 &3972494989842158583
|
||||||
|
BoxCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3972494989842158579}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
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: 0.95, y: 0.9}
|
||||||
|
newSize: {x: 0.95, y: 0.9}
|
||||||
|
adaptiveTilingThreshold: 0.5
|
||||||
|
drawMode: 0
|
||||||
|
adaptiveTiling: 0
|
||||||
|
m_AutoTiling: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 0.95, y: 0.9}
|
||||||
|
m_EdgeRadius: 0
|
||||||
|
--- !u!61 &3972494989842158582
|
||||||
|
BoxCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3972494989842158579}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_UsedByEffector: 0
|
||||||
|
m_UsedByComposite: 0
|
||||||
|
m_Offset: {x: 0, y: -0.34503877}
|
||||||
|
m_SpriteTilingProperty:
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
oldSize: {x: 0.95, y: 0.9}
|
||||||
|
newSize: {x: 0.95, y: 0.9}
|
||||||
|
adaptiveTilingThreshold: 0.5
|
||||||
|
drawMode: 0
|
||||||
|
adaptiveTiling: 0
|
||||||
|
m_AutoTiling: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 0.95, y: 1.5900776}
|
||||||
|
m_EdgeRadius: 0
|
||||||
|
--- !u!114 &3972494989842158581
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3972494989842158579}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 26a44ba4cba1985408fca11ba424361c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
_panel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
||||||
|
isOpen: 0
|
||||||
|
chest: {fileID: 0}
|
||||||
|
developerList: []
|
7
Assets/Items/Chest/Wooden Chest.prefab.meta
Normal file
7
Assets/Items/Chest/Wooden Chest.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7e5ccad877bb9da41a844878dab01357
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -70,6 +70,7 @@ MonoBehaviour:
|
|||||||
_tmpSecondPanel: {fileID: 0}
|
_tmpSecondPanel: {fileID: 0}
|
||||||
_tmpPanelAbove: {fileID: 0}
|
_tmpPanelAbove: {fileID: 0}
|
||||||
obj: {fileID: 9081071845930167562}
|
obj: {fileID: 9081071845930167562}
|
||||||
|
isAllowedToShowPanels: 1
|
||||||
--- !u!114 &1754993749
|
--- !u!114 &1754993749
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -228,7 +229,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: c261410eee3e5d640abd23159c28b3cc, type: 3}
|
m_Script: {fileID: 11500000, guid: c261410eee3e5d640abd23159c28b3cc, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
item: {fileID: 11400000, guid: aaa7c520aded1bc42a26b7ce43484010, type: 2}
|
item: {fileID: 11400000, guid: 5935777f7ac390a4187e03f34e7cafdd, type: 2}
|
||||||
name:
|
name:
|
||||||
name2:
|
name2:
|
||||||
triggered: 0
|
triggered: 0
|
||||||
|
@ -1114,11 +1114,12 @@ Transform:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 158729764}
|
m_GameObject: {fileID: 158729764}
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 71.70589, y: -24.098501, z: 18.195854}
|
m_LocalPosition: {x: 71.5, y: -24, z: 18.195854}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children:
|
||||||
|
- {fileID: 277639223}
|
||||||
m_Father: {fileID: 1168411278}
|
m_Father: {fileID: 1168411278}
|
||||||
m_RootOrder: 5
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!212 &158729766
|
--- !u!212 &158729766
|
||||||
SpriteRenderer:
|
SpriteRenderer:
|
||||||
@ -1481,7 +1482,7 @@ Transform:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 167690937}
|
m_GameObject: {fileID: 167690937}
|
||||||
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: -3.21, z: 10}
|
m_LocalPosition: {x: 52, y: -0.9, z: 10}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 369195292}
|
- {fileID: 369195292}
|
||||||
@ -7419,11 +7420,11 @@ Transform:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 277639222}
|
m_GameObject: {fileID: 277639222}
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 71.70589, y: -24.098501, z: 18.195854}
|
m_LocalPosition: {x: 0.20588684, y: -0.098501205, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1168411278}
|
m_Father: {fileID: 158729765}
|
||||||
m_RootOrder: 4
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!114 &277639224
|
--- !u!114 &277639224
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@ -30785,76 +30786,6 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 564650392}
|
m_GameObject: {fileID: 564650392}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &584661737
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 584661738}
|
|
||||||
- component: {fileID: 584661740}
|
|
||||||
- component: {fileID: 584661739}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Chest0-InteractionMSG
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &584661738
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 584661737}
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: 16, y: 51.199997, z: 18.195854}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1168411278}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &584661739
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 584661737}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 19883581ad8bbd9458fc7bc8c4bb3279, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
Panel: {fileID: 1131349084736352762, guid: bd644a38094b0334b979c0234699f069, type: 3}
|
|
||||||
OtherPanel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
|
||||||
SecondPanel: {fileID: 4888099765917562817, guid: c5397665a1fef4d4e8de420a7ee4ad74, type: 3}
|
|
||||||
PanelAbove: {fileID: 4787883790006063180, guid: b224f3239791233448271af67a076b03, type: 3}
|
|
||||||
_tmpPanel: {fileID: 0}
|
|
||||||
_tmpOtherPanel: {fileID: 0}
|
|
||||||
_tmpSecondPanel: {fileID: 0}
|
|
||||||
_tmpPanelAbove: {fileID: 0}
|
|
||||||
obj: {fileID: 1027343184}
|
|
||||||
isAllowedToShowPanels: 1
|
|
||||||
--- !u!58 &584661740
|
|
||||||
CircleCollider2D:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 584661737}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_Density: 1
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IsTrigger: 1
|
|
||||||
m_UsedByEffector: 0
|
|
||||||
m_UsedByComposite: 0
|
|
||||||
m_Offset: {x: -0.058876753, y: -0.084985375}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Radius: 1.8336468
|
|
||||||
--- !u!1 &612814819
|
--- !u!1 &612814819
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -41130,6 +41061,7 @@ GameObject:
|
|||||||
- component: {fileID: 805783478}
|
- component: {fileID: 805783478}
|
||||||
- component: {fileID: 805783480}
|
- component: {fileID: 805783480}
|
||||||
- component: {fileID: 805783481}
|
- component: {fileID: 805783481}
|
||||||
|
- component: {fileID: 805783482}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: LocalSceneManager
|
m_Name: LocalSceneManager
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -41205,76 +41137,37 @@ MonoBehaviour:
|
|||||||
MapName:
|
MapName:
|
||||||
ElementFolderName: InventoryItem
|
ElementFolderName: InventoryItem
|
||||||
ItemsListName: InventoryItemList
|
ItemsListName: InventoryItemList
|
||||||
--- !u!1 &805898524
|
--- !u!114 &805783482
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 805898525}
|
|
||||||
- component: {fileID: 805898527}
|
|
||||||
- component: {fileID: 805898526}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Chest1-InteractionMSG
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &805898525
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 805898524}
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: 58.59589, y: 32.941498, z: 20}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1168411278}
|
|
||||||
m_RootOrder: 2
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &805898526
|
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 805898524}
|
m_GameObject: {fileID: 805783477}
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
m_EditorHideFlags: 0
|
m_EditorHideFlags: 0
|
||||||
m_Script: {fileID: 11500000, guid: 19883581ad8bbd9458fc7bc8c4bb3279, type: 3}
|
m_Script: {fileID: 11500000, guid: 1b522b9a99467e740adc3e2ce6036ebe, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Panel: {fileID: 1131349084736352762, guid: bd644a38094b0334b979c0234699f069, type: 3}
|
StaticElements:
|
||||||
OtherPanel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
- name: Prize Chest
|
||||||
SecondPanel: {fileID: 4888099765917562817, guid: c5397665a1fef4d4e8de420a7ee4ad74, type: 3}
|
prefarbAssetName: Prize Chest
|
||||||
PanelAbove: {fileID: 4787883790006063180, guid: b224f3239791233448271af67a076b03, type: 3}
|
position: {x: 0.8, y: 75.6, z: 20}
|
||||||
_tmpPanel: {fileID: 0}
|
- name: Gold Chest
|
||||||
_tmpOtherPanel: {fileID: 0}
|
prefarbAssetName: Gold Chest
|
||||||
_tmpSecondPanel: {fileID: 0}
|
position: {x: 43.3, y: 57.6, z: 20}
|
||||||
_tmpPanelAbove: {fileID: 0}
|
- name: Wooden Chest one
|
||||||
obj: {fileID: 1265465282}
|
prefarbAssetName: Wooden Chest
|
||||||
isAllowedToShowPanels: 1
|
position: {x: 56.3, y: 0.6, z: 20}
|
||||||
--- !u!58 &805898527
|
- name: Wooden Chest two
|
||||||
CircleCollider2D:
|
prefarbAssetName: Wooden Chest
|
||||||
m_ObjectHideFlags: 0
|
position: {x: -23.65, y: 20.7, z: 20}
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
DynamicElements: []
|
||||||
m_PrefabInstance: {fileID: 0}
|
isNewGame: 1
|
||||||
m_PrefabAsset: {fileID: 0}
|
isContinued: 0
|
||||||
m_GameObject: {fileID: 805898524}
|
MapName:
|
||||||
m_Enabled: 1
|
ElementFolderName: Chest
|
||||||
m_Density: 1
|
ItemsListName: ChestList
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IsTrigger: 1
|
|
||||||
m_UsedByEffector: 0
|
|
||||||
m_UsedByComposite: 0
|
|
||||||
m_Offset: {x: -0.021246195, y: -0.084985375}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Radius: 1.7960162
|
|
||||||
--- !u!1 &824404437
|
--- !u!1 &824404437
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -42258,6 +42151,18 @@ MonoBehaviour:
|
|||||||
m_StringArgument:
|
m_StringArgument:
|
||||||
m_BoolArgument: 0
|
m_BoolArgument: 0
|
||||||
m_CallState: 2
|
m_CallState: 2
|
||||||
|
- m_Target: {fileID: 897697754}
|
||||||
|
m_TargetAssemblyTypeName: SaveController, Assembly-CSharp
|
||||||
|
m_MethodName: SaveChests
|
||||||
|
m_Mode: 1
|
||||||
|
m_Arguments:
|
||||||
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
|
m_IntArgument: 0
|
||||||
|
m_FloatArgument: 0
|
||||||
|
m_StringArgument:
|
||||||
|
m_BoolArgument: 0
|
||||||
|
m_CallState: 2
|
||||||
--- !u!114 &897697754
|
--- !u!114 &897697754
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -42477,160 +42382,6 @@ Rigidbody2D:
|
|||||||
m_SleepingMode: 1
|
m_SleepingMode: 1
|
||||||
m_CollisionDetection: 0
|
m_CollisionDetection: 0
|
||||||
m_Constraints: 0
|
m_Constraints: 0
|
||||||
--- !u!1 &926459323
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 926459324}
|
|
||||||
- component: {fileID: 926459329}
|
|
||||||
- component: {fileID: 926459327}
|
|
||||||
- component: {fileID: 926459326}
|
|
||||||
- component: {fileID: 926459325}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: chests_6
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &926459324
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 926459323}
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: -8.45, y: -3.9, z: 10}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1168411278}
|
|
||||||
m_RootOrder: 7
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &926459325
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 926459323}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 26a44ba4cba1985408fca11ba424361c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
_panel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
|
||||||
isOpen: 0
|
|
||||||
chest: {fileID: 0}
|
|
||||||
developerList:
|
|
||||||
- {fileID: 11400000, guid: 5935777f7ac390a4187e03f34e7cafdd, type: 2}
|
|
||||||
--- !u!61 &926459326
|
|
||||||
BoxCollider2D:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 926459323}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_Density: 1
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IsTrigger: 1
|
|
||||||
m_UsedByEffector: 0
|
|
||||||
m_UsedByComposite: 0
|
|
||||||
m_Offset: {x: 0, y: -0.34503877}
|
|
||||||
m_SpriteTilingProperty:
|
|
||||||
border: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
pivot: {x: 0.5, y: 0.5}
|
|
||||||
oldSize: {x: 0.95, y: 0.9}
|
|
||||||
newSize: {x: 0.95, y: 0.9}
|
|
||||||
adaptiveTilingThreshold: 0.5
|
|
||||||
drawMode: 0
|
|
||||||
adaptiveTiling: 0
|
|
||||||
m_AutoTiling: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Size: {x: 0.95, y: 1.5900776}
|
|
||||||
m_EdgeRadius: 0
|
|
||||||
--- !u!61 &926459327
|
|
||||||
BoxCollider2D:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 926459323}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_Density: 1
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
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: 0.95, y: 0.9}
|
|
||||||
newSize: {x: 0.95, y: 0.9}
|
|
||||||
adaptiveTilingThreshold: 0.5
|
|
||||||
drawMode: 0
|
|
||||||
adaptiveTiling: 0
|
|
||||||
m_AutoTiling: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Size: {x: 0.95, y: 0.9}
|
|
||||||
m_EdgeRadius: 0
|
|
||||||
--- !u!212 &926459329
|
|
||||||
SpriteRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 926459323}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 0
|
|
||||||
m_ReceiveShadows: 0
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 0
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
|
||||||
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: 1382705155
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_Sprite: {fileID: 2424983929796287158, guid: 7aa335ae36a8a8a478192b6105ddf5ab, type: 3}
|
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
m_FlipX: 0
|
|
||||||
m_FlipY: 0
|
|
||||||
m_DrawMode: 0
|
|
||||||
m_Size: {x: 0.95, y: 0.9}
|
|
||||||
m_AdaptiveModeThreshold: 0.5
|
|
||||||
m_SpriteTileMode: 0
|
|
||||||
m_WasSpriteAssigned: 1
|
|
||||||
m_MaskInteraction: 0
|
|
||||||
m_SpriteSortPoint: 0
|
|
||||||
--- !u!1 &930976544
|
--- !u!1 &930976544
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -43124,132 +42875,11 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Obj: {fileID: 8620305}
|
Obj: {fileID: 8620305}
|
||||||
--- !u!1 &1027343184
|
--- !u!4 &1027343185 stripped
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1027343185}
|
|
||||||
- component: {fileID: 1027343186}
|
|
||||||
- component: {fileID: 1027343187}
|
|
||||||
- component: {fileID: 1027343188}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: chests_54
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &1027343185
|
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_CorrespondingSourceObject: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_PrefabInstance: {fileID: 5754902894740927145}
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1027343184}
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: 16, y: 51.2, z: 18.195854}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1168411278}
|
|
||||||
m_RootOrder: 1
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!212 &1027343186
|
|
||||||
SpriteRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1027343184}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 0
|
|
||||||
m_ReceiveShadows: 0
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 0
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
|
||||||
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: 1
|
|
||||||
m_Sprite: {fileID: -471958427270782953, guid: 7aa335ae36a8a8a478192b6105ddf5ab, 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.35, y: 1.1}
|
|
||||||
m_AdaptiveModeThreshold: 0.5
|
|
||||||
m_SpriteTileMode: 0
|
|
||||||
m_WasSpriteAssigned: 1
|
|
||||||
m_MaskInteraction: 0
|
|
||||||
m_SpriteSortPoint: 0
|
|
||||||
--- !u!61 &1027343187
|
|
||||||
BoxCollider2D:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1027343184}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_Density: 1
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
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.35, y: 1.1}
|
|
||||||
newSize: {x: 1.35, y: 1.1}
|
|
||||||
adaptiveTilingThreshold: 0.5
|
|
||||||
drawMode: 0
|
|
||||||
adaptiveTiling: 0
|
|
||||||
m_AutoTiling: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Size: {x: 1.35, y: 1.1}
|
|
||||||
m_EdgeRadius: 0
|
|
||||||
--- !u!114 &1027343188
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1027343184}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 26a44ba4cba1985408fca11ba424361c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
_panel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
|
||||||
isOpen: 0
|
|
||||||
chest: {fileID: 0}
|
|
||||||
developerList: []
|
|
||||||
--- !u!1 &1058265261
|
--- !u!1 &1058265261
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -43799,7 +43429,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!4 &1168411278
|
--- !u!4 &1168411278
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -43811,14 +43441,10 @@ Transform:
|
|||||||
m_LocalPosition: {x: -15.20589, y: 24.598501, z: -18.195854}
|
m_LocalPosition: {x: -15.20589, y: 24.598501, z: -18.195854}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 584661738}
|
|
||||||
- {fileID: 1027343185}
|
|
||||||
- {fileID: 805898525}
|
|
||||||
- {fileID: 1265465283}
|
|
||||||
- {fileID: 277639223}
|
|
||||||
- {fileID: 158729765}
|
- {fileID: 158729765}
|
||||||
- {fileID: 1698721847}
|
- {fileID: 1265465283}
|
||||||
- {fileID: 926459324}
|
- {fileID: 1027343185}
|
||||||
|
- {fileID: 3972494989525988937}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 5
|
m_RootOrder: 5
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@ -44406,132 +44032,11 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1255147974}
|
m_GameObject: {fileID: 1255147974}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &1265465282
|
--- !u!4 &1265465283 stripped
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1265465283}
|
|
||||||
- component: {fileID: 1265465284}
|
|
||||||
- component: {fileID: 1265465285}
|
|
||||||
- component: {fileID: 1265465286}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: chests_9
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &1265465283
|
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_CorrespondingSourceObject: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_PrefabInstance: {fileID: 4669568061974884378}
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1265465282}
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: 58.59589, y: 32.941498, z: 20}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1168411278}
|
|
||||||
m_RootOrder: 3
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!212 &1265465284
|
|
||||||
SpriteRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1265465282}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 0
|
|
||||||
m_ReceiveShadows: 0
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 0
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
|
||||||
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: 1
|
|
||||||
m_Sprite: {fileID: 3423162062024585544, guid: 7aa335ae36a8a8a478192b6105ddf5ab, type: 3}
|
|
||||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
m_FlipX: 0
|
|
||||||
m_FlipY: 0
|
|
||||||
m_DrawMode: 0
|
|
||||||
m_Size: {x: 0.95, y: 0.9}
|
|
||||||
m_AdaptiveModeThreshold: 0.5
|
|
||||||
m_SpriteTileMode: 0
|
|
||||||
m_WasSpriteAssigned: 1
|
|
||||||
m_MaskInteraction: 0
|
|
||||||
m_SpriteSortPoint: 0
|
|
||||||
--- !u!61 &1265465285
|
|
||||||
BoxCollider2D:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1265465282}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_Density: 1
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
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: 0.95, y: 0.9}
|
|
||||||
newSize: {x: 0.95, y: 0.9}
|
|
||||||
adaptiveTilingThreshold: 0.5
|
|
||||||
drawMode: 0
|
|
||||||
adaptiveTiling: 0
|
|
||||||
m_AutoTiling: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Size: {x: 0.95, y: 0.9}
|
|
||||||
m_EdgeRadius: 0
|
|
||||||
--- !u!114 &1265465286
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1265465282}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 26a44ba4cba1985408fca11ba424361c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
_panel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
|
||||||
isOpen: 0
|
|
||||||
chest: {fileID: 0}
|
|
||||||
developerList: []
|
|
||||||
--- !u!1 &1290527200
|
--- !u!1 &1290527200
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -136890,76 +136395,6 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Panel: {fileID: 174581753}
|
Panel: {fileID: 174581753}
|
||||||
--- !u!1 &1698721846
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1698721847}
|
|
||||||
- component: {fileID: 1698721849}
|
|
||||||
- component: {fileID: 1698721848}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Chest3-InteractionMSG
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &1698721847
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1698721846}
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: -8.45, y: -3.8999996, z: 10}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1168411278}
|
|
||||||
m_RootOrder: 6
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &1698721848
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1698721846}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 19883581ad8bbd9458fc7bc8c4bb3279, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
Panel: {fileID: 1131349084736352762, guid: bd644a38094b0334b979c0234699f069, type: 3}
|
|
||||||
OtherPanel: {fileID: 5331092055018478733, guid: 2b46aee216d4b304f8aebcb303ebf4f4, type: 3}
|
|
||||||
SecondPanel: {fileID: 4888099765917562817, guid: c5397665a1fef4d4e8de420a7ee4ad74, type: 3}
|
|
||||||
PanelAbove: {fileID: 4787883790006063180, guid: b224f3239791233448271af67a076b03, type: 3}
|
|
||||||
_tmpPanel: {fileID: 0}
|
|
||||||
_tmpOtherPanel: {fileID: 0}
|
|
||||||
_tmpSecondPanel: {fileID: 0}
|
|
||||||
_tmpPanelAbove: {fileID: 0}
|
|
||||||
obj: {fileID: 926459323}
|
|
||||||
isAllowedToShowPanels: 1
|
|
||||||
--- !u!58 &1698721849
|
|
||||||
CircleCollider2D:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1698721846}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_Density: 1
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IsTrigger: 1
|
|
||||||
m_UsedByEffector: 0
|
|
||||||
m_UsedByComposite: 0
|
|
||||||
m_Offset: {x: -0.021246195, y: -0.084985375}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Radius: 1.7960162
|
|
||||||
--- !u!1 &1724888069
|
--- !u!1 &1724888069
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -138752,6 +138187,18 @@ MonoBehaviour:
|
|||||||
m_StringArgument:
|
m_StringArgument:
|
||||||
m_BoolArgument: 0
|
m_BoolArgument: 0
|
||||||
m_CallState: 2
|
m_CallState: 2
|
||||||
|
- m_Target: {fileID: 2146696734}
|
||||||
|
m_TargetAssemblyTypeName: SaveController, Assembly-CSharp
|
||||||
|
m_MethodName: SaveChests
|
||||||
|
m_Mode: 1
|
||||||
|
m_Arguments:
|
||||||
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
|
m_IntArgument: 0
|
||||||
|
m_FloatArgument: 0
|
||||||
|
m_StringArgument:
|
||||||
|
m_BoolArgument: 0
|
||||||
|
m_CallState: 2
|
||||||
--- !u!114 &2146696734
|
--- !u!114 &2146696734
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -138764,3 +138211,187 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: f8dbef2798cc8064f86e56d2bc02d2fa, type: 3}
|
m_Script: {fileID: 11500000, guid: f8dbef2798cc8064f86e56d2bc02d2fa, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!1001 &3972494989525988936
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 1168411278}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 3972494989842158579, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: chests_6
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 3
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: -8.45
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: -3.8999996
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 10
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
--- !u!4 &3972494989525988937 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 3972494989842158580, guid: 7e5ccad877bb9da41a844878dab01357, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 3972494989525988936}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &4669568061974884378
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 1168411278}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 4669568061092186072, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: chests_9
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 58.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 33
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 20
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4669568061092186073, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 5cf1cdd5626b6894f824d7c7edcdc166, type: 3}
|
||||||
|
--- !u!1001 &5754902894740927145
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 1168411278}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 16.00589
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 51
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 20
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036728, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5754902894522036729, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: chests_54
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
|
||||||
|
@ -80,4 +80,37 @@ public class ChestController : BaseWarehouseController
|
|||||||
// WARNING
|
// WARNING
|
||||||
// DANGER - functon override position which may be not free
|
// DANGER - functon override position which may be not free
|
||||||
|
|
||||||
|
///<summary>
|
||||||
|
/// Function for placed item in inventory on SPECYFIC position
|
||||||
|
/// Used by SceneInventoryManager for load saved items on their positions
|
||||||
|
///</summary>
|
||||||
|
|
||||||
|
// WHAT WITH FUNCTION - setupItemOnPosition() - ???
|
||||||
|
public void SetupItemInChest(int key, EquippableItem pickable)
|
||||||
|
{
|
||||||
|
this._items[key] = pickable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SetItemOnPosition(int _keyPosition, Item _item)
|
||||||
|
{
|
||||||
|
// Drag setup first end second object on the same panel - should only one - this wwere dropped item
|
||||||
|
// Becouse of this source slot from other panel is settuping in dropped panel too - list get empty item and it cause errors
|
||||||
|
if(_item != null)
|
||||||
|
{
|
||||||
|
this._items[_keyPosition] = _item;
|
||||||
|
Debug.Log("Put item on chest"+_item.name);
|
||||||
|
// Inform Map Chests manager about update - update list to be compliant with the local list
|
||||||
|
SceneChestManager.Instance.AddItemToChest(gameObject.name, _keyPosition, (EquippableItem)_item);
|
||||||
|
}
|
||||||
|
// if we assign null its removed later in EndDrag method
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void RemoveItemFromPosition(int _keyPosition)
|
||||||
|
{
|
||||||
|
base.RemoveItemFromPosition(_keyPosition);
|
||||||
|
Debug.Log("Pick up item from chest");
|
||||||
|
|
||||||
|
// Inform Map Chests manager about update - update list to be compliant with the local list
|
||||||
|
SceneChestManager.Instance.RemoveItemFromChest(gameObject.name, _keyPosition);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,4 +33,9 @@ public class SaveController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
SceneInventoryManager.Instance.SaveInventoryItems();
|
SceneInventoryManager.Instance.SaveInventoryItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SaveChests()
|
||||||
|
{
|
||||||
|
SceneChestManager.Instance.SaveChests();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
8
Assets/Scripts/SceneManager/SaveChest.meta
Normal file
8
Assets/Scripts/SceneManager/SaveChest.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5edd9215206d6134ca9e51265abeb679
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
Assets/Scripts/SceneManager/SaveChest/ChestData.meta
Normal file
8
Assets/Scripts/SceneManager/SaveChest/ChestData.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a10cc331a77b9af4aad20839724f2370
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
26
Assets/Scripts/SceneManager/SaveChest/ChestPrefarbAsset.cs
Normal file
26
Assets/Scripts/SceneManager/SaveChest/ChestPrefarbAsset.cs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class ChestPrefarbAsset
|
||||||
|
{
|
||||||
|
[SerializeField]
|
||||||
|
public string name;
|
||||||
|
[SerializeField]
|
||||||
|
public string prefarbAssetName;
|
||||||
|
[SerializeField]
|
||||||
|
public Vector3 position;
|
||||||
|
[SerializeField]
|
||||||
|
public Dictionary<int, EquippableItemPrefarbAsset> content = new Dictionary<int, EquippableItemPrefarbAsset>();
|
||||||
|
|
||||||
|
public ChestPrefarbAsset() {}
|
||||||
|
|
||||||
|
public ChestPrefarbAsset(string _name, string _prefarbAssetName, Vector3 _position, Dictionary<int, EquippableItemPrefarbAsset> _content)
|
||||||
|
{
|
||||||
|
name = _name;
|
||||||
|
prefarbAssetName = _prefarbAssetName;
|
||||||
|
position = _position;
|
||||||
|
content = _content;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b770806e2f537ac4ab266a6629ae2fd2
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,54 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
[System.Serializable]
|
||||||
|
public class ChestPrefarbAssetData
|
||||||
|
{
|
||||||
|
public string name;
|
||||||
|
|
||||||
|
public string prefarbAssetName;
|
||||||
|
|
||||||
|
public float[] position;
|
||||||
|
|
||||||
|
public Dictionary<int, EquippableItemPrefarbAssetData> content = new Dictionary<int, EquippableItemPrefarbAssetData>();
|
||||||
|
|
||||||
|
public ChestPrefarbAssetData(ChestPrefarbAsset chestPrefarbAsset)
|
||||||
|
{
|
||||||
|
name = chestPrefarbAsset.name;
|
||||||
|
prefarbAssetName = chestPrefarbAsset.prefarbAssetName;
|
||||||
|
|
||||||
|
position = new float[3];
|
||||||
|
position[0] = chestPrefarbAsset.position.x;
|
||||||
|
position[1] = chestPrefarbAsset.position.y;
|
||||||
|
position[2] = chestPrefarbAsset.position.z;
|
||||||
|
|
||||||
|
Debug.Log("ChestPrefarbAsset to ChestPrefarbAssetData - " + chestPrefarbAsset.name);
|
||||||
|
foreach(KeyValuePair<int, EquippableItemPrefarbAsset> itemEntry in chestPrefarbAsset.content)
|
||||||
|
{
|
||||||
|
Debug.Log("Slot nr " + itemEntry.Key);
|
||||||
|
this.content[itemEntry.Key] = this.EquippableItemPrefarbAssetToData(itemEntry.Value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public EquippableItemPrefarbAssetData EquippableItemPrefarbAssetToData(EquippableItemPrefarbAsset equippableItemPrefarbAsset)
|
||||||
|
{
|
||||||
|
return new EquippableItemPrefarbAssetData(equippableItemPrefarbAsset);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ChestPrefarbAsset MapDataToChestPrefarbAsset()
|
||||||
|
{
|
||||||
|
ChestPrefarbAsset chestPrefarbAsset = new ChestPrefarbAsset();
|
||||||
|
chestPrefarbAsset.name = this.name;
|
||||||
|
chestPrefarbAsset.prefarbAssetName = this.prefarbAssetName;
|
||||||
|
chestPrefarbAsset.position = new Vector3(this.position[0], this.position[1], this.position[2]);
|
||||||
|
|
||||||
|
foreach(KeyValuePair<int, EquippableItemPrefarbAssetData> equippableItemPrefarbAssetDataEntry in this.content)
|
||||||
|
{
|
||||||
|
chestPrefarbAsset.content[equippableItemPrefarbAssetDataEntry.Key] = equippableItemPrefarbAssetDataEntry.Value.MapDataToEquippableItemPrefarbAsset();
|
||||||
|
}
|
||||||
|
|
||||||
|
return chestPrefarbAsset;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9a58ed5e0b9d76143be15d0f7a9d67ce
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
105
Assets/Scripts/SceneManager/SaveChest/SaveChestSystem.cs
Normal file
105
Assets/Scripts/SceneManager/SaveChest/SaveChestSystem.cs
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization.Formatters.Binary;
|
||||||
|
|
||||||
|
public static class SaveChestSystem
|
||||||
|
{
|
||||||
|
private static string map;
|
||||||
|
|
||||||
|
public static void SaveChest(ChestPrefarbAsset chestPrefarbAsset, string ElementFolderName)
|
||||||
|
{
|
||||||
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
// todo: add in scene name folder
|
||||||
|
string path = SaveSystem.GetSavePath(ElementFolderName);
|
||||||
|
Debug.Log(path);
|
||||||
|
if (!Directory.Exists(path))
|
||||||
|
Directory.CreateDirectory(path);
|
||||||
|
|
||||||
|
path += "/" + chestPrefarbAsset.name + ".fun";
|
||||||
|
|
||||||
|
FileStream stream = new FileStream(path, FileMode.Create);
|
||||||
|
|
||||||
|
ChestPrefarbAssetData chestData = new ChestPrefarbAssetData(chestPrefarbAsset);
|
||||||
|
|
||||||
|
formatter.Serialize(stream, chestData);
|
||||||
|
stream.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void SaveChestsList(List<ChestPrefarbAsset> chestPrefarbAssetList, string _path, string ElementName)
|
||||||
|
{
|
||||||
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
// todo: add in scene name folder
|
||||||
|
string path = SaveSystem.GetSavePath(_path);
|
||||||
|
Debug.Log("Saved Chest at " + path);
|
||||||
|
if (!Directory.Exists(path))
|
||||||
|
Directory.CreateDirectory(path);
|
||||||
|
|
||||||
|
path += "/" + ElementName + ".fun";
|
||||||
|
|
||||||
|
FileStream stream = new FileStream(path, FileMode.Create);
|
||||||
|
|
||||||
|
List<ChestPrefarbAssetData> chestsListData = new List<ChestPrefarbAssetData>();
|
||||||
|
|
||||||
|
Debug.Log("---- Save Chest");
|
||||||
|
|
||||||
|
foreach(ChestPrefarbAsset chest in chestPrefarbAssetList)
|
||||||
|
{
|
||||||
|
Debug.Log(chest.name);
|
||||||
|
Debug.Log(chest.content.Count);
|
||||||
|
foreach(KeyValuePair<int, EquippableItemPrefarbAsset> equippableItemPrefarbAsset in chest.content)
|
||||||
|
{
|
||||||
|
Debug.Log("item on position " + equippableItemPrefarbAsset.Key + " " + equippableItemPrefarbAsset.Value.equippableItem.name);
|
||||||
|
}
|
||||||
|
chestsListData.Add(new ChestPrefarbAssetData(chest));
|
||||||
|
}
|
||||||
|
|
||||||
|
formatter.Serialize(stream, chestsListData);
|
||||||
|
stream.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void Save()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ChestPrefarbAssetData LoadChest(string chestName, string ElementFolderName)
|
||||||
|
{
|
||||||
|
string path = SaveSystem.GetSavePath(ElementFolderName) + "/" + chestName;// + ".fun";
|
||||||
|
|
||||||
|
if(File.Exists(path))
|
||||||
|
{
|
||||||
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
FileStream stream = new FileStream(path, FileMode.Open);
|
||||||
|
|
||||||
|
ChestPrefarbAssetData chestData = formatter.Deserialize(stream) as ChestPrefarbAssetData;
|
||||||
|
stream.Close();
|
||||||
|
|
||||||
|
return chestData;
|
||||||
|
} else {
|
||||||
|
Debug.Log("Save file not found in " + path);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static List<ChestPrefarbAssetData> LoadChestsList(string _path, string ElementName)
|
||||||
|
{
|
||||||
|
string path = SaveSystem.GetSavePath(_path) + "/" + ElementName + ".fun";
|
||||||
|
|
||||||
|
if(File.Exists(path))
|
||||||
|
{
|
||||||
|
|
||||||
|
BinaryFormatter formatter = new BinaryFormatter();
|
||||||
|
FileStream stream = new FileStream(path, FileMode.Open);
|
||||||
|
|
||||||
|
List<ChestPrefarbAssetData> chestsListData = formatter.Deserialize(stream) as List<ChestPrefarbAssetData>;
|
||||||
|
stream.Close();
|
||||||
|
|
||||||
|
return chestsListData;
|
||||||
|
} else {
|
||||||
|
Debug.Log("Save file not found in " + path);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b3dae3c259ff42a4d8ee3f1d82fb02c5
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,6 +1,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEditor;
|
||||||
|
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class EquippableItemPrefarbAsset
|
public class EquippableItemPrefarbAsset
|
||||||
@ -12,7 +13,7 @@ public class EquippableItemPrefarbAsset
|
|||||||
[SerializeField]
|
[SerializeField]
|
||||||
public Vector3 position;
|
public Vector3 position;
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
public EquippableItem equippableItem;
|
public EquippableItem equippableItem = null;
|
||||||
|
|
||||||
public EquippableItemPrefarbAsset() { }
|
public EquippableItemPrefarbAsset() { }
|
||||||
|
|
||||||
@ -23,5 +24,25 @@ public class EquippableItemPrefarbAsset
|
|||||||
position = _position;
|
position = _position;
|
||||||
equippableItem = _equippableItem;
|
equippableItem = _equippableItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public EquippableItemPrefarbAsset(string _name, string _prefarbAssetName, Vector3 _position, string _equippableItemName)
|
||||||
|
{
|
||||||
|
name = _name; // builded object local name (setuped e.g. by admin)
|
||||||
|
prefarbAssetName = _prefarbAssetName; // builded object name in Assets/
|
||||||
|
position = _position;
|
||||||
|
|
||||||
|
string[] assetNames = AssetDatabase.FindAssets("t:EquippableItem", new[] { "Assets/Items/" });
|
||||||
|
foreach (string SOName in assetNames)
|
||||||
|
{
|
||||||
|
var SOpath = AssetDatabase.GUIDToAssetPath(SOName);
|
||||||
|
|
||||||
|
if(SOpath.Contains(_equippableItemName + ".asset"))
|
||||||
|
{
|
||||||
|
// 3.2 set EquippableItem object
|
||||||
|
equippableItem = AssetDatabase.LoadAssetAtPath<EquippableItem>(SOpath);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
273
Assets/Scripts/SceneManager/SceneChestManager.cs
Normal file
273
Assets/Scripts/SceneManager/SceneChestManager.cs
Normal file
@ -0,0 +1,273 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
// only for eqipptable items
|
||||||
|
public class SceneChestManager : MonoBehaviour
|
||||||
|
{
|
||||||
|
private const string GameObjectLocalization = "Assets/Items/Chest/"; // for prefarb
|
||||||
|
|
||||||
|
private const string AssetLocalization = "Assets/Items/"; // for Equitabble asset
|
||||||
|
|
||||||
|
//private const string DYNAMIC_ELEMENT = "/DynamicElements/";
|
||||||
|
private const string STATIC_ELEMENT = "/StaticElements/";
|
||||||
|
|
||||||
|
// content skrzyni (docelowo skrzynia + jej content)
|
||||||
|
|
||||||
|
/// <Summary>
|
||||||
|
/// Handle manually setuped object properties
|
||||||
|
/// eg. npc, minions, chest content
|
||||||
|
/// </Summary>
|
||||||
|
[SerializeField]
|
||||||
|
public List<ChestPrefarbAsset> StaticElements;
|
||||||
|
|
||||||
|
/// <Summary>
|
||||||
|
/// Handle dynamic object properties
|
||||||
|
/// eg. dropped items
|
||||||
|
/// </Summary>
|
||||||
|
// PrefarbAsset
|
||||||
|
[SerializeField]
|
||||||
|
public List<ChestPrefarbAsset> DynamicElements;
|
||||||
|
|
||||||
|
public bool isNewGame = true;
|
||||||
|
public bool isContinued = false;
|
||||||
|
public string MapName;
|
||||||
|
public string ElementFolderName = "Chest";
|
||||||
|
public string ItemsListName = "ChestList";
|
||||||
|
|
||||||
|
public static SceneChestManager Instance;
|
||||||
|
|
||||||
|
public void Awake()
|
||||||
|
{
|
||||||
|
if(Instance == null)
|
||||||
|
{
|
||||||
|
this.MapName = SceneManager.GetActiveScene().name;
|
||||||
|
|
||||||
|
if(isNewGame) // in new game dynamicItemsList is defaulty empty
|
||||||
|
{
|
||||||
|
//BuildChests(StaticElements);
|
||||||
|
|
||||||
|
}else if(isContinued)
|
||||||
|
{
|
||||||
|
//LoadChests();
|
||||||
|
|
||||||
|
//BuildChests(DynamicElements);
|
||||||
|
}
|
||||||
|
|
||||||
|
Instance = this;
|
||||||
|
|
||||||
|
|
||||||
|
}else if (Instance != this)
|
||||||
|
{
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Start()
|
||||||
|
{
|
||||||
|
// EXAMPLE HOW TO ADD ELEMENTS TO CHEST
|
||||||
|
//
|
||||||
|
// this.StaticElements.Add(
|
||||||
|
// new ChestPrefarbAsset("test chest", "Wooden Chest", new Vector3(0, 0, 0),
|
||||||
|
// new Dictionary<int, EquippableItemPrefarbAsset>{
|
||||||
|
// {1, new EquippableItemPrefarbAsset("Pickaxe test", "Pickaxe", new Vector3(0,0,0), "Pickaxe")},
|
||||||
|
// {4, new EquippableItemPrefarbAsset("Gold ore test", "Gold Ore", new Vector3(0,0,0), "Gold Ore")},
|
||||||
|
// })
|
||||||
|
// );
|
||||||
|
|
||||||
|
LoadChests();
|
||||||
|
BuildChests(StaticElements);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public int AddItemToChest(string chestName, int keyPosition, EquippableItem addedItem){
|
||||||
|
|
||||||
|
// 1. Find Chest in List and update value
|
||||||
|
this.StaticElements.Where(chestPrefarbAsset => chestPrefarbAsset.name == chestName).ToList().ForEach(chest => {
|
||||||
|
chest.content[keyPosition] = new EquippableItemPrefarbAsset(addedItem.name, addedItem.name, new Vector3(0,0,0), addedItem);
|
||||||
|
Debug.Log("Added element " + addedItem.name + " to chest (" + chestName + ")");
|
||||||
|
});
|
||||||
|
|
||||||
|
return keyPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RemoveItemFromChest(string chestName, int keyPosition)
|
||||||
|
{
|
||||||
|
// 1. Find Chest in List - baically ther should be one chest with this name but who know :D
|
||||||
|
this.StaticElements.Where(chestPrefarbAsset => chestPrefarbAsset.name == chestName).ToList().ForEach(chest => {
|
||||||
|
chest.content.Remove(keyPosition);
|
||||||
|
Debug.Log("Removed element on position -" + keyPosition + " - from chest (" + chestName + ")");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// public void RemoveDynamicEquippableItem(EquippableItemPrefarbAsset equippableItemPrefarbAsset)
|
||||||
|
// {
|
||||||
|
// }
|
||||||
|
|
||||||
|
public void BuildChests(List<ChestPrefarbAsset> chestPrefarbAssetList)
|
||||||
|
{
|
||||||
|
foreach(ChestPrefarbAsset chestPrefarbAsset in chestPrefarbAssetList)
|
||||||
|
{
|
||||||
|
|
||||||
|
GameObject newChestObject = (GameObject)AssetDatabase.LoadAssetAtPath(GameObjectLocalization + chestPrefarbAsset.prefarbAssetName + ".prefab", typeof(GameObject));
|
||||||
|
|
||||||
|
if(!newChestObject)
|
||||||
|
{
|
||||||
|
Debug.Log("Can't find prefarb by name " + chestPrefarbAsset.prefarbAssetName);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
GameObject globalGUI = GameObject.FindGameObjectsWithTag("GUI")[0];
|
||||||
|
|
||||||
|
if(globalGUI)
|
||||||
|
{
|
||||||
|
// 1. Create gameObject by handled prefarb
|
||||||
|
// 2. SetUp
|
||||||
|
// 2.1 Set position
|
||||||
|
GameObject chest = Instantiate(newChestObject, chestPrefarbAsset.position, Quaternion.identity, globalGUI.transform);
|
||||||
|
|
||||||
|
// 2.2 Set name
|
||||||
|
chest.name = chestPrefarbAsset.name;
|
||||||
|
|
||||||
|
//chest.transform.SetParent(globalGUI.transform);
|
||||||
|
// 2.3 Set pransform
|
||||||
|
chest.transform.localScale = new Vector3(0.5f, 0.5f, 1);
|
||||||
|
|
||||||
|
// 3. SetUp EqippableItems list
|
||||||
|
Dictionary<int, EquippableItemPrefarbAsset> itemsOfChestList = chestPrefarbAsset.content;
|
||||||
|
|
||||||
|
string[] assetNames = AssetDatabase.FindAssets("t:EquippableItem", new[] { AssetLocalization });
|
||||||
|
|
||||||
|
foreach(KeyValuePair<int, EquippableItemPrefarbAsset> itemsOfChestEntry in itemsOfChestList)
|
||||||
|
{
|
||||||
|
// 3.1 find object
|
||||||
|
foreach (string SOName in assetNames)
|
||||||
|
{
|
||||||
|
var SOpath = AssetDatabase.GUIDToAssetPath(SOName);
|
||||||
|
|
||||||
|
if(SOpath.Contains(itemsOfChestEntry.Value.prefarbAssetName + ".asset"))
|
||||||
|
{
|
||||||
|
// 3.2 set EquippableItem object
|
||||||
|
chest.GetComponent<ChestController>().SetupItemInChest(
|
||||||
|
itemsOfChestEntry.Key,
|
||||||
|
AssetDatabase.LoadAssetAtPath<EquippableItem>(SOpath)
|
||||||
|
);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
Debug.Log("Can't find global GUI object!!!");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// public void BuildChestItems(Dictionary<int, EquippableItemPrefarbAsset> itemsList)
|
||||||
|
// {
|
||||||
|
// // pass to InventoryManager singleton
|
||||||
|
// foreach(KeyValuePair<int, EquippableItemPrefarbAsset> itemEntry in itemsList)
|
||||||
|
// InventoryManager.Instance.SetupItemInInventory(itemEntry.Key, itemEntry.Value.equippableItem);
|
||||||
|
// }
|
||||||
|
|
||||||
|
/// Save both list of EquippableItems
|
||||||
|
public void SaveChests()
|
||||||
|
{
|
||||||
|
// 1. staticElements
|
||||||
|
this.SaveStaticChestsList();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Static list of EquippableItem Save
|
||||||
|
private void SaveStaticChestsList()
|
||||||
|
{
|
||||||
|
// Case I - if we remember all list
|
||||||
|
// 1) if after removed item form DynamicList is empty - remove all file
|
||||||
|
// 2) if after removed item form DynamciList there are another one - save updated list again
|
||||||
|
if(this.StaticElements.Count > 0) {
|
||||||
|
SaveChestSystem.SaveChestsList(this.StaticElements, this.MapName + STATIC_ELEMENT, this.ItemsListName); // change to SaveEquippableItemSystem for EquippableItemPrefarbAsset
|
||||||
|
} else {
|
||||||
|
string _path = SaveSystem.GetSavePath(this.MapName + STATIC_ELEMENT) + "/" + this.ItemsListName + ".fun";
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Debug.Log("File to remove: " + _path);
|
||||||
|
|
||||||
|
if(File.Exists(_path))
|
||||||
|
{
|
||||||
|
File.Delete(_path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (IOException ioExp)
|
||||||
|
{
|
||||||
|
Debug.LogError(ioExp.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Case II - if we rememenber object per file
|
||||||
|
// 1) remove specyfic file
|
||||||
|
//
|
||||||
|
// Unfortunatelly we don't use this way of saving items yet :D
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public void LoadChests()
|
||||||
|
{
|
||||||
|
// if continue -> search files with content in save path
|
||||||
|
|
||||||
|
// if new game -> build objects from default configuration
|
||||||
|
Debug.Log("Load chest");
|
||||||
|
this.LoadStaticChestsList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region Static list of Chest Loader
|
||||||
|
public void LoadStaticChestsList()
|
||||||
|
{
|
||||||
|
string path = SaveSystem.GetSavePath(this.MapName + STATIC_ELEMENT);
|
||||||
|
|
||||||
|
if (!Directory.Exists(path)) // if not exists thats mean there was nothing saved yet - nothing to load
|
||||||
|
return;
|
||||||
|
|
||||||
|
FileInfo[] fileInfo = new DirectoryInfo(path).GetFiles();
|
||||||
|
|
||||||
|
foreach(FileInfo file in fileInfo)
|
||||||
|
{
|
||||||
|
Debug.Log(file.FullName);
|
||||||
|
|
||||||
|
List<ChestPrefarbAsset> chestPrefarbAssetList = new List<ChestPrefarbAsset>();
|
||||||
|
|
||||||
|
List<ChestPrefarbAssetData> chestPrefarbAssetDataList = SaveChestSystem.LoadChestsList(this.MapName + STATIC_ELEMENT, this.ItemsListName);
|
||||||
|
|
||||||
|
foreach(ChestPrefarbAssetData chestPrefarbAssetData in chestPrefarbAssetDataList)
|
||||||
|
chestPrefarbAssetList.Add(chestPrefarbAssetData.MapDataToChestPrefarbAsset());
|
||||||
|
|
||||||
|
Debug.Log("---- Load Chest");
|
||||||
|
|
||||||
|
foreach(ChestPrefarbAsset chest in chestPrefarbAssetList)
|
||||||
|
{
|
||||||
|
Debug.Log(chest.name);
|
||||||
|
foreach(KeyValuePair<int, EquippableItemPrefarbAsset> equippableItemPrefarbAsset in chest.content)
|
||||||
|
{
|
||||||
|
// Debug.Log("item on position " + equippableItemPrefarbAsset.Key +
|
||||||
|
// " " + equippableItemPrefarbAsset.Value.equippableItem.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.StaticElements = chestPrefarbAssetList;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
11
Assets/Scripts/SceneManager/SceneChestManager.cs.meta
Normal file
11
Assets/Scripts/SceneManager/SceneChestManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1b522b9a99467e740adc3e2ce6036ebe
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -41,10 +41,6 @@ public class SceneInventoryManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
LoadInventoryItems(); // load user items
|
LoadInventoryItems(); // load user items
|
||||||
|
|
||||||
foreach(KeyValuePair<int, EquippableItemPrefarbAsset> ItemsElements in ItemsElements)
|
|
||||||
{
|
|
||||||
Debug.Log("Content:" + ItemsElements.Value.equippableItem.Name);
|
|
||||||
}
|
|
||||||
BuildInventoryItems(ItemsElements); // pass them to InventoryManager
|
BuildInventoryItems(ItemsElements); // pass them to InventoryManager
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,6 +75,7 @@ public class SceneInventoryManager : MonoBehaviour
|
|||||||
// 1) if after removed item form DynamicList is empty - remove all file
|
// 1) if after removed item form DynamicList is empty - remove all file
|
||||||
// 2) if after removed item form DynamciList there are another one - save updated list again
|
// 2) if after removed item form DynamciList there are another one - save updated list again
|
||||||
if(InventoryManager.Instance._items.Count > 0) {
|
if(InventoryManager.Instance._items.Count > 0) {
|
||||||
|
|
||||||
// 1. Map From Dictionary<int, Item>' to 'Dictionary<int, EquippableItemPrefarbAsset>'
|
// 1. Map From Dictionary<int, Item>' to 'Dictionary<int, EquippableItemPrefarbAsset>'
|
||||||
Dictionary<int, EquippableItemPrefarbAsset> mappedList = new Dictionary<int, EquippableItemPrefarbAsset>();
|
Dictionary<int, EquippableItemPrefarbAsset> mappedList = new Dictionary<int, EquippableItemPrefarbAsset>();
|
||||||
|
|
||||||
|
@ -167,7 +167,8 @@ abstract public class BasePanelController : MonoBehaviour
|
|||||||
|
|
||||||
DestroyImmediate(_tmp.gameObject, true);
|
DestroyImmediate(_tmp.gameObject, true);
|
||||||
|
|
||||||
// apply list of items
|
// Apply list of items
|
||||||
|
// Update Object surce items list based on slots state and configuration
|
||||||
for (int i = 0; i < _itemSlots.Count; i++)
|
for (int i = 0; i < _itemSlots.Count; i++)
|
||||||
{
|
{
|
||||||
if (_itemSlots[i].Item != null)
|
if (_itemSlots[i].Item != null)
|
||||||
|
@ -44,7 +44,11 @@ abstract public class BaseWarehouseController : MonoBehaviour
|
|||||||
|
|
||||||
public virtual void SetItemOnPosition(int _keyPosition, Item _item)
|
public virtual void SetItemOnPosition(int _keyPosition, Item _item)
|
||||||
{
|
{
|
||||||
|
// Drag setup first end second object on the same panel - should only one - this wwere dropped item
|
||||||
|
// Becouse of this source slot from other panel is settuping in dropped panel too - list get empty item and it cause errors
|
||||||
|
if(_item != null)
|
||||||
this._items[_keyPosition] = _item;
|
this._items[_keyPosition] = _item;
|
||||||
|
// if we assign null its removed later in EndDrag method
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void RemoveItemFromPosition(int _keyPosition)
|
public virtual void RemoveItemFromPosition(int _keyPosition)
|
||||||
|
Loading…
Reference in New Issue
Block a user