├── ProjectSettings
├── ProjectVersion.txt
├── ClusterInputManager.asset
├── NetworkManager.asset
├── EditorBuildSettings.asset
├── TimeManager.asset
├── VFXManager.asset
├── AudioManager.asset
├── TagManager.asset
├── EditorSettings.asset
├── PresetManager.asset
├── UnityConnectSettings.asset
├── DynamicsManager.asset
├── Physics2DSettings.asset
├── NavMeshAreas.asset
├── GraphicsSettings.asset
├── QualitySettings.asset
├── InputManager.asset
└── ProjectSettings.asset
├── README
├── UML.png
├── 主界面.png
├── UML-Slot.png
├── 人物属性更新修复后.gif
├── 人物属性更新延迟.gif
└── UML-Inventory.png
├── Assets
├── Plugins
│ ├── LitJson.dll
│ └── LitJson.dll.meta
├── Resources
│ ├── Sprites
│ │ ├── Items
│ │ │ ├── hp.png
│ │ │ ├── mp.png
│ │ │ ├── Meat.png
│ │ │ ├── apple.png
│ │ │ ├── armor.png
│ │ │ ├── axe.png
│ │ │ ├── bag.png
│ │ │ ├── belts.png
│ │ │ ├── book.PNG
│ │ │ ├── boots.png
│ │ │ ├── coins.png
│ │ │ ├── gem.png
│ │ │ ├── pants.png
│ │ │ ├── rings.PNG
│ │ │ ├── sword.png
│ │ │ ├── b_t_01.png
│ │ │ ├── bracers.PNG
│ │ │ ├── cloaks.PNG
│ │ │ ├── gloves.PNG
│ │ │ ├── helmets.png
│ │ │ ├── ingots.png
│ │ │ ├── scroll.png
│ │ │ ├── shield.png
│ │ │ ├── necklace.PNG
│ │ │ ├── shoulders.png
│ │ │ ├── iron_gloves.png
│ │ │ ├── steel_gloves.png
│ │ │ ├── steel_sword.png
│ │ │ ├── the_great_stick.png
│ │ │ ├── heavy_steel_gloves.png
│ │ │ ├── Meat.png.meta
│ │ │ ├── armor.png.meta
│ │ │ ├── axe.png.meta
│ │ │ ├── bag.png.meta
│ │ │ ├── belts.png.meta
│ │ │ ├── book.PNG.meta
│ │ │ ├── boots.png.meta
│ │ │ ├── coins.png.meta
│ │ │ ├── gem.png.meta
│ │ │ ├── hp.png.meta
│ │ │ ├── mp.png.meta
│ │ │ ├── pants.png.meta
│ │ │ ├── rings.PNG.meta
│ │ │ ├── sword.png.meta
│ │ │ ├── b_t_01.png.meta
│ │ │ ├── bracers.PNG.meta
│ │ │ ├── cloaks.PNG.meta
│ │ │ ├── gloves.PNG.meta
│ │ │ ├── helmets.png.meta
│ │ │ ├── ingots.png.meta
│ │ │ ├── necklace.PNG.meta
│ │ │ ├── scroll.png.meta
│ │ │ ├── shield.png.meta
│ │ │ ├── shoulders.png.meta
│ │ │ ├── apple.png.meta
│ │ │ ├── iron_gloves.png.meta
│ │ │ ├── steel_gloves.png.meta
│ │ │ ├── steel_sword.png.meta
│ │ │ ├── heavy_steel_gloves.png.meta
│ │ │ └── the_great_stick.png.meta
│ │ ├── Backgrounds
│ │ │ ├── f.PNG
│ │ │ ├── panel.png
│ │ │ ├── button_long.png
│ │ │ ├── button_square.png
│ │ │ ├── f.PNG.meta
│ │ │ ├── panel.png.meta
│ │ │ ├── button_long.png.meta
│ │ │ └── button_square.png.meta
│ │ ├── Items.meta
│ │ └── Backgrounds.meta
│ ├── Items.Json.meta
│ ├── Sprites.meta
│ └── Items.Json
├── Prefabs
│ ├── Slot.prefab.meta
│ ├── Chest.prefab.meta
│ ├── ItemUI.prefab.meta
│ ├── ToolTip.prefab.meta
│ ├── CharacterPanel.prefab.meta
│ ├── VendorSlot Variant.prefab.meta
│ ├── EquipmentSlot Variant.prefab.meta
│ ├── Slot.prefab
│ ├── ItemUI.prefab
│ ├── VendorSlot Variant.prefab
│ ├── EquipmentSlot Variant.prefab
│ └── ToolTip.prefab
├── Scenes
│ └── Main.unity.meta
├── Plugins.meta
├── Prefabs.meta
├── Scenes.meta
├── Scripts.meta
├── Resources.meta
└── Scripts
│ ├── Item.meta
│ ├── Slot.meta
│ ├── Inventory.meta
│ ├── ItemUI.cs.meta
│ ├── Player.cs.meta
│ ├── Test.cs.meta
│ ├── Item
│ ├── Item.cs.meta
│ ├── Weapon.cs.meta
│ ├── Consumable.cs.meta
│ ├── Equipment.cs.meta
│ ├── Material.cs.meta
│ ├── Material.cs
│ ├── Consumable.cs
│ ├── Weapon.cs
│ ├── Item.cs
│ └── Equipment.cs
│ ├── Slot
│ ├── Slot.cs.meta
│ ├── VendorSlot.cs.meta
│ ├── EquipmentSlot.cs.meta
│ ├── VendorSlot.cs
│ ├── EquipmentSlot.cs
│ └── Slot.cs
│ ├── ToolTip.cs.meta
│ ├── Inventory
│ ├── Chest.cs.meta
│ ├── Vendor.cs.meta
│ ├── Inventory.cs.meta
│ ├── CharacterPanel.cs.meta
│ ├── Chest.cs
│ ├── Vendor.cs
│ ├── CharacterPanel.cs
│ └── Inventory.cs
│ ├── InventoryManager.cs.meta
│ ├── Player.cs
│ ├── Test.cs
│ ├── ToolTip.cs
│ ├── ItemUI.cs
│ └── InventoryManager.cs
├── .gitignore
├── Logs
└── Packages-Update.log
├── README.md
├── Packages
└── manifest.json
└── 背包系统UML图.drawio
/ProjectSettings/ProjectVersion.txt:
--------------------------------------------------------------------------------
1 | m_EditorVersion: 2018.3.9f1
2 |
--------------------------------------------------------------------------------
/README/UML.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/README/UML.png
--------------------------------------------------------------------------------
/README/主界面.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/README/主界面.png
--------------------------------------------------------------------------------
/README/UML-Slot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/README/UML-Slot.png
--------------------------------------------------------------------------------
/README/人物属性更新修复后.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/README/人物属性更新修复后.gif
--------------------------------------------------------------------------------
/README/人物属性更新延迟.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/README/人物属性更新延迟.gif
--------------------------------------------------------------------------------
/README/UML-Inventory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/README/UML-Inventory.png
--------------------------------------------------------------------------------
/Assets/Plugins/LitJson.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Plugins/LitJson.dll
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/hp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/hp.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/mp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/mp.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/Meat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/Meat.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/apple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/apple.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/armor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/armor.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/axe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/axe.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/bag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/bag.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/belts.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/belts.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/book.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/book.PNG
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/boots.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/boots.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/coins.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/coins.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/gem.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/gem.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/pants.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/pants.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/rings.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/rings.PNG
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/sword.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/sword.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Backgrounds/f.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Backgrounds/f.PNG
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/b_t_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/b_t_01.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/bracers.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/bracers.PNG
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/cloaks.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/cloaks.PNG
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/gloves.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/gloves.PNG
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/helmets.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/helmets.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/ingots.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/ingots.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/scroll.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/scroll.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/shield.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/shield.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/necklace.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/necklace.PNG
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/shoulders.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/shoulders.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Backgrounds/panel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Backgrounds/panel.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/iron_gloves.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/iron_gloves.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/steel_gloves.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/steel_gloves.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/steel_sword.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/steel_sword.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/the_great_stick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/the_great_stick.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Backgrounds/button_long.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Backgrounds/button_long.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Backgrounds/button_square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Backgrounds/button_square.png
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items/heavy_steel_gloves.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nusohi/HelloInventorySystem/HEAD/Assets/Resources/Sprites/Items/heavy_steel_gloves.png
--------------------------------------------------------------------------------
/ProjectSettings/ClusterInputManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!236 &1
4 | ClusterInputManager:
5 | m_ObjectHideFlags: 0
6 | m_Inputs: []
7 |
--------------------------------------------------------------------------------
/Assets/Prefabs/Slot.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b85fb220080e02c4cadb5d8be3d0bd7f
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Scenes/Main.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e874138fbd8e861479fc9baad5837ad6
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Prefabs/Chest.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bac8695ddb3026a48bbba047872c3bbc
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Prefabs/ItemUI.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ff95b6403a0e54a4c87aac0af4b4a2f8
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Prefabs/ToolTip.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1ca8bba0dc8663f4aa882dc1598e1877
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Resources/Items.Json.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5400c88812964294aa340e23aa0d91d4
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Plugins.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c5f831ef524ea8a46b78c0128562ce33
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Prefabs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fde3f51a45035974995de7700ce69358
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Prefabs/CharacterPanel.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8d16367dbf2edb8409780c9a64f0325c
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Scenes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8b4b81a8ea2c21449a1e99438dfe6269
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Scripts.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6b85ce321e4ad414e8c98410da8c3406
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ProjectSettings/NetworkManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!149 &1
4 | NetworkManager:
5 | m_ObjectHideFlags: 0
6 | m_DebugLevel: 0
7 | m_Sendrate: 15
8 | m_AssetToPrefab: {}
9 |
--------------------------------------------------------------------------------
/Assets/Prefabs/VendorSlot Variant.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f74809f01898f204abc23b89294bc4a3
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f6298ddc5e714e94883d1dcd2967ab73
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Scripts/Item.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8548d97ac5419a047a8450fb0df02cc8
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Scripts/Slot.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5718965524641dd428821b45a7d5d708
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Prefabs/EquipmentSlot Variant.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4550177b962e95444b81419526a8cb49
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Scripts/Inventory.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ce6cf547ffec2f84bbef8a053388141b
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ProjectSettings/EditorBuildSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1045 &1
4 | EditorBuildSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_Scenes: []
8 | m_configObjects: {}
9 |
--------------------------------------------------------------------------------
/Assets/Resources/Sprites.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f420c12ea5902044bbe42568fdaa62c9
3 | folderAsset: yes
4 | timeCreated: 1460088142
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Items.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b80786040658ad041a5975bd19153833
3 | folderAsset: yes
4 | timeCreated: 1460088142
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/Assets/Resources/Sprites/Backgrounds.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d6fae565a7bf7934f88ed55eb1fa1131
3 | folderAsset: yes
4 | timeCreated: 1460088142
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/ProjectSettings/TimeManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!5 &1
4 | TimeManager:
5 | m_ObjectHideFlags: 0
6 | Fixed Timestep: 0.02
7 | Maximum Allowed Timestep: 0.1
8 | m_TimeScale: 1
9 | Maximum Particle Timestep: 0.03
10 |
--------------------------------------------------------------------------------
/Assets/Scripts/ItemUI.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f6696821bd9af444ca318df995958e12
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Player.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3fb211090d4c7f34188880c223d1f4f0
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Test.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 563f4b8366950fb4781cf33d0d8accfd
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Item/Item.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 20f86f56706b0b741a45e28824fec5ee
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Item/Weapon.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0c5fd046ee1924c408460813864996d8
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Slot/Slot.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b0c475689934afc46a88e4bf9f69e016
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/ToolTip.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a8383efd03642d2419479ee9ce6ceb81
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Inventory/Chest.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fe26d426087a02e4bb707f818fb16364
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Inventory/Vendor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 083645371339ff044ab863fd8504ffa9
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/InventoryManager.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a614d793c97622a42836eb883a301cf1
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Item/Consumable.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c259a3a32ccaaf5428be7310ae07e8f9
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Item/Equipment.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0dda5375bb0de2c45ab1ecfc6bffaab8
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Item/Material.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 094f5c22d08ea874fbc309d572555c72
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Slot/VendorSlot.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3c8d83d214269264d955ee45176e1fca
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Inventory/Inventory.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 18d2fe93aa702d248a8ab9d378d3ad61
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Slot/EquipmentSlot.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6d69f88e49e60524ba71ea260020c9d9
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Inventory/CharacterPanel.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7fbeeb330d4a99c468c471aeeefab909
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ProjectSettings/VFXManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!937362698 &1
4 | VFXManager:
5 | m_ObjectHideFlags: 0
6 | m_IndirectShader: {fileID: 0}
7 | m_CopyBufferShader: {fileID: 0}
8 | m_SortShader: {fileID: 0}
9 | m_RenderPipeSettingsPath:
10 | m_FixedTimeStep: 0.016666668
11 | m_MaxDeltaTime: 0.05
12 |
--------------------------------------------------------------------------------
/Assets/Scripts/Inventory/Chest.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | public class Chest : Inventory
6 | {
7 | public static Chest Instance { get; private set; }
8 |
9 | private void Awake() {
10 | if (Instance == null) {
11 | Instance = this;
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Assets/Scripts/Item/Material.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | public class Material : Item
6 | {
7 | public Material(int id, string name, ItemType type, string des, int capacity, float buyPrice, float sellPrice, string sprite)
8 | : base(id, name, type, des, capacity, buyPrice, sellPrice, sprite) {
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ProjectSettings/AudioManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!11 &1
4 | AudioManager:
5 | m_ObjectHideFlags: 0
6 | m_Volume: 1
7 | Rolloff Scale: 1
8 | Doppler Factor: 1
9 | Default Speaker Mode: 2
10 | m_SampleRate: 0
11 | m_DSPBufferSize: 1024
12 | m_VirtualVoiceCount: 512
13 | m_RealVoiceCount: 32
14 | m_SpatializerPlugin:
15 | m_AmbisonicDecoderPlugin:
16 | m_DisableAudio: 0
17 | m_VirtualizeEffects: 1
18 |
--------------------------------------------------------------------------------
/ProjectSettings/TagManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!78 &1
4 | TagManager:
5 | serializedVersion: 2
6 | tags: []
7 | layers:
8 | - Default
9 | - TransparentFX
10 | - Ignore Raycast
11 | -
12 | - Water
13 | - UI
14 | -
15 | -
16 | - PostProcessing
17 | -
18 | -
19 | -
20 | -
21 | -
22 | -
23 | -
24 | -
25 | -
26 | -
27 | -
28 | -
29 | -
30 | -
31 | -
32 | -
33 | -
34 | -
35 | -
36 | -
37 | -
38 | -
39 | -
40 | m_SortingLayers:
41 | - name: Default
42 | uniqueID: 0
43 | locked: 0
44 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | [Ll]ibrary/
2 | [Tt]emp/
3 | [Oo]bj/
4 | [Bb]uild/
5 | [Bb]uilds/
6 | Assets/AssetStoreTools*
7 |
8 | # Visual Studio cache directory
9 | .vs/
10 |
11 | # Autogenerated VS/MD/Consulo solution and project files
12 | ExportedObj/
13 | .consulo/
14 | *.csproj
15 | *.unityproj
16 | *.sln
17 | *.suo
18 | *.tmp
19 | *.user
20 | *.userprefs
21 | *.pidb
22 | *.booproj
23 | *.svd
24 | *.pdb
25 | *.opendb
26 |
27 | # Unity3D generated meta files
28 | *.pidb.meta
29 | *.pdb.meta
30 |
31 | # Unity3D Generated File On Crash Reports
32 | sysinfo.txt
33 |
34 | # Builds
35 | *.apk
36 | *.unitypackage
37 | Assets/Material.meta
38 |
--------------------------------------------------------------------------------
/Assets/Scripts/Item/Consumable.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | public class Consumable : Item
6 | {
7 | public int HP;
8 | public int MP;
9 |
10 | public Consumable(int id, string name, ItemType type, string des, int capacity, float buyPrice, float sellPrice, string sprite, int hp, int mp)
11 | : base(id, name, type, des, capacity, buyPrice, sellPrice, sprite) {
12 | HP = hp;
13 | MP = mp;
14 | }
15 |
16 | public override string GetToolTipText() {
17 | return string.Format("{0}\n\n加血:{1}\n加蓝:{2}", base.GetToolTipText(), HP, MP);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/ProjectSettings/EditorSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!159 &1
4 | EditorSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 7
7 | m_ExternalVersionControlSupport: Visible Meta Files
8 | m_SerializationMode: 2
9 | m_LineEndingsForNewScripts: 2
10 | m_DefaultBehaviorMode: 0
11 | m_SpritePackerMode: 0
12 | m_SpritePackerPaddingPower: 1
13 | m_EtcTextureCompressorBehavior: 1
14 | m_EtcTextureFastCompressor: 1
15 | m_EtcTextureNormalCompressor: 2
16 | m_EtcTextureBestCompressor: 4
17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd
18 | m_ProjectGenerationRootNamespace:
19 | m_UserGeneratedProjectSuffix:
20 | m_CollabEditorSettings:
21 | inProgressEnabled: 1
22 |
--------------------------------------------------------------------------------
/Assets/Scripts/Slot/VendorSlot.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using UnityEngine.EventSystems;
5 |
6 | public class VendorSlot : Slot
7 | {
8 | public override void OnPointerDown(PointerEventData eventData) {
9 | // 左键卖,右键买
10 | if (eventData.button == PointerEventData.InputButton.Left && InventoryManager.Instance.IsPicked == true) {
11 | transform.parent.parent.SendMessage("SellItem");
12 | }
13 | else if(eventData.button == PointerEventData.InputButton.Right && InventoryManager.Instance.IsPicked == false) {
14 | if (HasItem()) {
15 | transform.parent.parent.SendMessage("BuyItem", ItemUI.Item);
16 | }
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Assets/Plugins/LitJson.dll.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3399b569ac55cc640a1b5bb9e8764d5d
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | platformData:
13 | - first:
14 | Any:
15 | second:
16 | enabled: 1
17 | settings: {}
18 | - first:
19 | Editor: Editor
20 | second:
21 | enabled: 0
22 | settings:
23 | DefaultValueInitialized: true
24 | - first:
25 | Windows Store Apps: WindowsStoreApps
26 | second:
27 | enabled: 0
28 | settings:
29 | CPU: AnyCPU
30 | userData:
31 | assetBundleName:
32 | assetBundleVariant:
33 |
--------------------------------------------------------------------------------
/Assets/Scripts/Player.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using UnityEngine.UI;
5 |
6 | public class Player : MonoBehaviour
7 | {
8 | public Text MoneyText;
9 | private float money = 100;
10 | public float Money
11 | {
12 | get { return money; }
13 | set
14 | {
15 | money = value;
16 | if (MoneyText != null)
17 | MoneyText.text = money.ToString();
18 | }
19 | }
20 |
21 |
22 | public void AddMoney(float amount) {
23 | Money += amount;
24 | }
25 |
26 | public bool SubMoney(float amount) {
27 | if (Money >= amount) {
28 | Money -= amount;
29 | return true;
30 | }
31 | else {
32 | return false;
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/ProjectSettings/PresetManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1386491679 &1
4 | PresetManager:
5 | m_ObjectHideFlags: 0
6 | m_DefaultList:
7 | - type:
8 | m_NativeTypeID: 108
9 | m_ManagedTypePPtr: {fileID: 0}
10 | m_ManagedTypeFallback:
11 | defaultPresets:
12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea,
13 | type: 2}
14 | - type:
15 | m_NativeTypeID: 1020
16 | m_ManagedTypePPtr: {fileID: 0}
17 | m_ManagedTypeFallback:
18 | defaultPresets:
19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6,
20 | type: 2}
21 | - type:
22 | m_NativeTypeID: 1006
23 | m_ManagedTypePPtr: {fileID: 0}
24 | m_ManagedTypeFallback:
25 | defaultPresets:
26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9,
27 | type: 2}
28 |
--------------------------------------------------------------------------------
/ProjectSettings/UnityConnectSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!310 &1
4 | UnityConnectSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 1
7 | m_Enabled: 0
8 | m_TestMode: 0
9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com
12 | m_TestInitMode: 0
13 | CrashReportingSettings:
14 | m_EventUrl: https://perf-events.cloud.unity3d.com
15 | m_Enabled: 0
16 | m_LogBufferSize: 10
17 | m_CaptureEditorExceptions: 1
18 | UnityPurchasingSettings:
19 | m_Enabled: 0
20 | m_TestMode: 0
21 | UnityAnalyticsSettings:
22 | m_Enabled: 0
23 | m_TestMode: 0
24 | m_InitializeOnStartup: 1
25 | UnityAdsSettings:
26 | m_Enabled: 0
27 | m_InitializeOnStartup: 1
28 | m_TestMode: 0
29 | m_IosGameId:
30 | m_AndroidGameId:
31 | m_GameIds: {}
32 | m_GameId:
33 | PerformanceReportingSettings:
34 | m_Enabled: 0
35 |
--------------------------------------------------------------------------------
/Assets/Scripts/Test.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using UnityEngine.UI;
5 |
6 | public class Test : MonoBehaviour
7 | {
8 | public ToolTip ToolTip;
9 | public string ToolTipText;
10 |
11 | private Button button;
12 |
13 | private void Start() {
14 | if (ToolTip == null) {
15 | ToolTip = GameObject.Find("ToolTip").GetComponent();
16 | }
17 |
18 | button = GetComponent