Browse Source

商店

pull/46/head
45 1 year ago
parent
commit
0cd16f7e10
  1. 534
      ColorlessWorld-2024-4-2/Assets/GameDate/LevelDate/LevelState_1.asset
  2. 8
      ColorlessWorld-2024-4-2/Assets/Prefab/Shop.meta
  3. 463
      ColorlessWorld-2024-4-2/Assets/Prefab/Shop/CardSaleNode.prefab
  4. 7
      ColorlessWorld-2024-4-2/Assets/Prefab/Shop/CardSaleNode.prefab.meta
  5. 41
      ColorlessWorld-2024-4-2/Assets/Scenes/Map.unity
  6. 2457
      ColorlessWorld-2024-4-2/Assets/Scenes/Shop.unity
  7. 12
      ColorlessWorld-2024-4-2/Assets/Scripts/LeveProcess/LevelGenerator.cs
  8. 5
      ColorlessWorld-2024-4-2/Assets/Scripts/Shop/CardMapNode.cs
  9. 17
      ColorlessWorld-2024-4-2/Assets/Scripts/Shop/CardSaleNode.cs
  10. 11
      ColorlessWorld-2024-4-2/Assets/Scripts/Shop/CardSaleNode.cs.meta
  11. 3
      ColorlessWorld-2024-4-2/Assets/Scripts/Shop/ChangeColorMangaer.cs
  12. 57
      ColorlessWorld-2024-4-2/Assets/Scripts/Shop/ShopManager.cs

534
ColorlessWorld-2024-4-2/Assets/GameDate/LevelDate/LevelState_1.asset

@ -16,432 +16,430 @@ MonoBehaviour:
levelSaveMap:
- levelDataList:
- roomType: 0
isUse: 0
nodePos: {x: -94.21361, y: -161.51341, z: 80}
isUse: 1
nodePos: {x: -109.213615, y: -161.51326, z: 95}
line: 0
column: 0
fatherLevelNodes: []
nextLevelNodes: []
nextLevelNodes:
- {x: 1, y: 0}
- roomType: 0
isUse: 1
nodePos: {x: -79.213615, y: -161.51341, z: 80}
nodePos: {x: -109.213615, y: -161.51326, z: 110}
line: 0
column: 1
fatherLevelNodes: []
nextLevelNodes:
- {x: 1, y: 2}
- {x: 1, y: 1}
- {x: 1, y: 0}
- roomType: 0
isUse: 1
nodePos: {x: -64.213615, y: -161.51341, z: 80}
isUse: 0
nodePos: {x: -109.213615, y: -161.51326, z: 125}
line: 0
column: 2
fatherLevelNodes: []
nextLevelNodes:
- {x: 1, y: 2}
nextLevelNodes: []
- roomType: 0
isUse: 1
nodePos: {x: -49.213615, y: -161.51341, z: 80}
nodePos: {x: -109.213615, y: -161.51326, z: 140}
line: 0
column: 3
fatherLevelNodes: []
nextLevelNodes:
- {x: 1, y: 4}
- roomType: 0
isUse: 0
nodePos: {x: -34.213608, y: -161.51341, z: 80}
isUse: 1
nodePos: {x: -109.213615, y: -161.51326, z: 155}
line: 0
column: 4
fatherLevelNodes: []
nextLevelNodes: []
nextLevelNodes:
- {x: 1, y: 4}
- levelDataList:
- roomType: 1
isUse: 0
nodePos: {x: -94.21361, y: -139.5134, z: 80}
line: 1
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 3
- roomType: 0
isUse: 1
nodePos: {x: -79.213615, y: -139.5134, z: 80}
nodePos: {x: -87.21362, y: -161.51326, z: 95}
line: 1
column: 1
column: 0
fatherLevelNodes:
- {x: 0, y: 0}
- {x: 0, y: 1}
nextLevelNodes:
- {x: 2, y: 0}
- {x: 2, y: 1}
- roomType: 0
isUse: 1
nodePos: {x: -64.213615, y: -139.5134, z: 80}
isUse: 0
nodePos: {x: -87.21362, y: -161.51326, z: 110}
line: 1
column: 1
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 0
isUse: 0
nodePos: {x: -87.21362, y: -161.51326, z: 125}
line: 1
column: 2
fatherLevelNodes:
- {x: 0, y: 1}
- {x: 0, y: 2}
nextLevelNodes:
- {x: 2, y: 1}
- {x: 2, y: 2}
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 0
isUse: 0
nodePos: {x: -49.213615, y: -139.5134, z: 80}
nodePos: {x: -87.21362, y: -161.51326, z: 140}
line: 1
column: 3
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 0
- roomType: 5
isUse: 1
nodePos: {x: -34.213608, y: -139.5134, z: 80}
nodePos: {x: -87.21362, y: -161.51326, z: 155}
line: 1
column: 4
fatherLevelNodes:
- {x: 0, y: 3}
- {x: 0, y: 4}
nextLevelNodes:
- {x: 2, y: 4}
- levelDataList:
- roomType: 0
- roomType: 3
isUse: 1
nodePos: {x: -94.21361, y: -117.5134, z: 80}
nodePos: {x: -65.213615, y: -161.51326, z: 95}
line: 2
column: 0
fatherLevelNodes:
- {x: 1, y: 1}
- {x: 1, y: 0}
nextLevelNodes:
- {x: 3, y: 1}
- roomType: 5
- {x: 3, y: 0}
- roomType: 0
isUse: 1
nodePos: {x: -79.213615, y: -117.5134, z: 80}
nodePos: {x: -65.213615, y: -161.51326, z: 110}
line: 2
column: 1
fatherLevelNodes:
- {x: 1, y: 2}
- {x: 1, y: 0}
nextLevelNodes:
- {x: 3, y: 1}
- {x: 3, y: 2}
- roomType: 0
isUse: 1
nodePos: {x: -64.213615, y: -117.5134, z: 80}
isUse: 0
nodePos: {x: -65.213615, y: -161.51326, z: 125}
line: 2
column: 2
fatherLevelNodes:
- {x: 1, y: 2}
nextLevelNodes:
- {x: 3, y: 1}
- roomType: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 1
isUse: 0
nodePos: {x: -49.213615, y: -117.5134, z: 80}
nodePos: {x: -65.213615, y: -161.51326, z: 140}
line: 2
column: 3
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 0
- roomType: 5
isUse: 1
nodePos: {x: -34.213608, y: -117.5134, z: 80}
nodePos: {x: -65.213615, y: -161.51326, z: 155}
line: 2
column: 4
fatherLevelNodes:
- {x: 1, y: 4}
nextLevelNodes:
- {x: 3, y: 3}
- {x: 3, y: 4}
- levelDataList:
- roomType: 0
isUse: 0
nodePos: {x: -94.21361, y: -95.5134, z: 80}
line: 3
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 5
isUse: 1
nodePos: {x: -79.213615, y: -95.5134, z: 80}
nodePos: {x: -43.213608, y: -161.51326, z: 95}
line: 3
column: 1
column: 0
fatherLevelNodes:
- {x: 2, y: 1}
- {x: 2, y: 2}
- {x: 2, y: 0}
nextLevelNodes:
- {x: 4, y: 0}
- {x: 4, y: 1}
- roomType: 1
- roomType: 5
isUse: 0
nodePos: {x: -64.213615, y: -95.5134, z: 80}
nodePos: {x: -43.213608, y: -161.51326, z: 110}
line: 3
column: 2
column: 1
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 0
isUse: 1
nodePos: {x: -43.213608, y: -161.51326, z: 125}
line: 3
column: 2
fatherLevelNodes:
- {x: 2, y: 1}
nextLevelNodes:
- {x: 4, y: 1}
- roomType: 5
isUse: 1
nodePos: {x: -49.213615, y: -95.5134, z: 80}
nodePos: {x: -43.213608, y: -161.51326, z: 140}
line: 3
column: 3
fatherLevelNodes:
- {x: 2, y: 4}
nextLevelNodes:
- {x: 4, y: 4}
- roomType: 5
isUse: 0
nodePos: {x: -34.213608, y: -95.5134, z: 80}
- {x: 4, y: 3}
- roomType: 0
isUse: 1
nodePos: {x: -43.213608, y: -161.51326, z: 155}
line: 3
column: 4
fatherLevelNodes: []
nextLevelNodes: []
fatherLevelNodes:
- {x: 2, y: 4}
nextLevelNodes:
- {x: 4, y: 3}
- levelDataList:
- roomType: 5
- roomType: 0
isUse: 1
nodePos: {x: -94.21361, y: -73.51339, z: 80}
nodePos: {x: -21.213612, y: -161.51326, z: 95}
line: 4
column: 0
fatherLevelNodes:
- {x: 3, y: 1}
- {x: 3, y: 0}
nextLevelNodes:
- {x: 5, y: 0}
- {x: 5, y: 1}
- roomType: 0
isUse: 1
nodePos: {x: -79.213615, y: -73.51339, z: 80}
nodePos: {x: -21.213612, y: -161.51326, z: 110}
line: 4
column: 1
fatherLevelNodes:
- {x: 3, y: 1}
- {x: 3, y: 2}
nextLevelNodes:
- {x: 5, y: 2}
- roomType: 1
- {x: 5, y: 1}
- roomType: 0
isUse: 0
nodePos: {x: -64.213615, y: -73.51339, z: 80}
nodePos: {x: -21.213612, y: -161.51326, z: 125}
line: 4
column: 2
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 3
isUse: 0
nodePos: {x: -49.213615, y: -73.51339, z: 80}
line: 4
column: 3
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 5
- roomType: 1
isUse: 1
nodePos: {x: -34.213608, y: -73.51339, z: 80}
nodePos: {x: -21.213612, y: -161.51326, z: 140}
line: 4
column: 4
column: 3
fatherLevelNodes:
- {x: 3, y: 3}
- {x: 3, y: 4}
nextLevelNodes:
- {x: 5, y: 4}
- {x: 5, y: 3}
- roomType: 4
isUse: 0
nodePos: {x: -21.213612, y: -161.51326, z: 155}
line: 4
column: 4
fatherLevelNodes: []
nextLevelNodes: []
- levelDataList:
- roomType: 4
isUse: 1
nodePos: {x: -94.21361, y: -51.513405, z: 80}
isUse: 0
nodePos: {x: 0.7863858, y: -161.51326, z: 95}
line: 5
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 1
isUse: 1
nodePos: {x: 0.7863858, y: -161.51326, z: 110}
line: 5
column: 1
fatherLevelNodes:
- {x: 4, y: 0}
- {x: 4, y: 1}
nextLevelNodes:
- {x: 6, y: 0}
- {x: 6, y: 1}
- roomType: 1
- {x: 6, y: 2}
- roomType: 5
isUse: 0
nodePos: {x: -79.213615, y: -51.513405, z: 80}
nodePos: {x: 0.7863858, y: -161.51326, z: 125}
line: 5
column: 1
column: 2
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 0
- roomType: 5
isUse: 1
nodePos: {x: -64.213615, y: -51.513405, z: 80}
nodePos: {x: 0.7863858, y: -161.51326, z: 140}
line: 5
column: 2
column: 3
fatherLevelNodes:
- {x: 4, y: 1}
- {x: 4, y: 3}
nextLevelNodes:
- {x: 6, y: 3}
- roomType: 1
- {x: 6, y: 2}
- roomType: 0
isUse: 1
nodePos: {x: -49.213615, y: -51.513405, z: 80}
nodePos: {x: 0.7863858, y: -161.51326, z: 155}
line: 5
column: 3
column: 4
fatherLevelNodes:
- {x: 4, y: 4}
- {x: 4, y: 3}
nextLevelNodes:
- {x: 6, y: 4}
- roomType: 0
- levelDataList:
- roomType: 6
isUse: 0
nodePos: {x: -34.213608, y: -51.513405, z: 80}
line: 5
column: 4
nodePos: {x: 22.786386, y: -161.51326, z: 95}
line: 6
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- levelDataList:
- roomType: 6
isUse: 1
nodePos: {x: -94.21361, y: -29.513397, z: 80}
isUse: 0
nodePos: {x: 22.786386, y: -161.51326, z: 110}
line: 6
column: 0
fatherLevelNodes:
- {x: 5, y: 0}
nextLevelNodes:
- {x: 7, y: 0}
column: 1
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 6
isUse: 1
nodePos: {x: -79.213615, y: -29.513397, z: 80}
nodePos: {x: 22.786386, y: -161.51326, z: 125}
line: 6
column: 1
column: 2
fatherLevelNodes:
- {x: 5, y: 0}
- {x: 5, y: 1}
- {x: 5, y: 3}
nextLevelNodes:
- {x: 7, y: 1}
- {x: 7, y: 3}
- {x: 7, y: 2}
- roomType: 6
isUse: 0
nodePos: {x: -64.213615, y: -29.513397, z: 80}
nodePos: {x: 22.786386, y: -161.51326, z: 140}
line: 6
column: 2
column: 3
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 6
isUse: 1
nodePos: {x: -49.213615, y: -29.513397, z: 80}
line: 6
column: 3
fatherLevelNodes:
- {x: 5, y: 2}
nextLevelNodes:
- {x: 7, y: 4}
- roomType: 6
isUse: 1
nodePos: {x: -34.213608, y: -29.513397, z: 80}
nodePos: {x: 22.786386, y: -161.51326, z: 155}
line: 6
column: 4
fatherLevelNodes:
- {x: 5, y: 3}
- {x: 5, y: 4}
nextLevelNodes:
- {x: 7, y: 4}
- {x: 7, y: 3}
- levelDataList:
- roomType: 1
isUse: 1
nodePos: {x: -94.21361, y: -7.513405, z: 80}
line: 7
column: 0
fatherLevelNodes:
- {x: 6, y: 0}
nextLevelNodes:
- {x: 8, y: 1}
- roomType: 5
isUse: 1
nodePos: {x: -79.213615, y: -7.513405, z: 80}
line: 7
column: 1
fatherLevelNodes:
- {x: 6, y: 1}
nextLevelNodes:
- {x: 8, y: 1}
- roomType: 4
isUse: 0
nodePos: {x: -64.213615, y: -7.513405, z: 80}
nodePos: {x: 44.786396, y: -161.51326, z: 95}
line: 7
column: 2
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 5
- roomType: 1
isUse: 0
nodePos: {x: -49.213615, y: -7.513405, z: 80}
nodePos: {x: 44.786396, y: -161.51326, z: 110}
line: 7
column: 3
column: 1
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 1
- roomType: 4
isUse: 1
nodePos: {x: -34.213608, y: -7.513405, z: 80}
nodePos: {x: 44.786396, y: -161.51326, z: 125}
line: 7
column: 4
column: 2
fatherLevelNodes:
- {x: 6, y: 2}
nextLevelNodes:
- {x: 8, y: 2}
- roomType: 5
isUse: 1
nodePos: {x: 44.786396, y: -161.51326, z: 140}
line: 7
column: 3
fatherLevelNodes:
- {x: 6, y: 2}
- {x: 6, y: 4}
- {x: 6, y: 3}
nextLevelNodes:
- {x: 8, y: 3}
- {x: 8, y: 4}
- {x: 8, y: 2}
- {x: 8, y: 3}
- roomType: 0
isUse: 0
nodePos: {x: 44.786396, y: -161.51326, z: 155}
line: 7
column: 4
fatherLevelNodes: []
nextLevelNodes: []
- levelDataList:
- roomType: 0
isUse: 0
nodePos: {x: -94.21361, y: 14.486589, z: 80}
nodePos: {x: 66.78638, y: -161.51326, z: 95}
line: 8
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 5
isUse: 0
nodePos: {x: 66.78638, y: -161.51326, z: 110}
line: 8
column: 1
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 1
isUse: 1
nodePos: {x: -79.213615, y: 14.486577, z: 80}
nodePos: {x: 66.78638, y: -161.51326, z: 125}
line: 8
column: 1
column: 2
fatherLevelNodes:
- {x: 7, y: 0}
- {x: 7, y: 1}
- {x: 7, y: 2}
- {x: 7, y: 3}
nextLevelNodes:
- {x: 9, y: 2}
- {x: 9, y: 3}
- {x: 9, y: 1}
- roomType: 3
isUse: 0
nodePos: {x: -64.213615, y: 14.486577, z: 80}
line: 8
column: 2
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 5
isUse: 1
nodePos: {x: -49.213615, y: 14.486577, z: 80}
nodePos: {x: 66.78638, y: -161.51326, z: 140}
line: 8
column: 3
fatherLevelNodes:
- {x: 7, y: 4}
- {x: 7, y: 3}
nextLevelNodes:
- {x: 9, y: 3}
- roomType: 0
- roomType: 4
isUse: 1
nodePos: {x: -34.213608, y: 14.486577, z: 80}
nodePos: {x: 66.78638, y: -161.51326, z: 155}
line: 8
column: 4
fatherLevelNodes:
- {x: 7, y: 4}
- {x: 7, y: 3}
nextLevelNodes:
- {x: 9, y: 3}
- levelDataList:
- roomType: 4
isUse: 0
nodePos: {x: -94.21361, y: 36.486584, z: 80}
nodePos: {x: 88.78637, y: -161.51326, z: 95}
line: 9
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 4
isUse: 1
nodePos: {x: -79.213615, y: 36.486584, z: 80}
nodePos: {x: 88.78637, y: -161.51326, z: 110}
line: 9
column: 1
fatherLevelNodes:
- {x: 8, y: 1}
- {x: 8, y: 2}
nextLevelNodes:
- {x: 10, y: 2}
- roomType: 4
isUse: 1
nodePos: {x: -64.213615, y: 36.486584, z: 80}
isUse: 0
nodePos: {x: 88.78637, y: -161.51326, z: 125}
line: 9
column: 2
fatherLevelNodes:
- {x: 8, y: 1}
nextLevelNodes:
- {x: 10, y: 2}
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 4
isUse: 1
nodePos: {x: -49.213615, y: 36.486584, z: 80}
nodePos: {x: 88.78637, y: -161.51326, z: 140}
line: 9
column: 3
fatherLevelNodes:
- {x: 8, y: 3}
- {x: 8, y: 4}
- {x: 8, y: 2}
- {x: 8, y: 3}
nextLevelNodes:
- {x: 10, y: 2}
- {x: 10, y: 2}
- {x: 10, y: 2}
- roomType: 4
isUse: 0
nodePos: {x: -34.213608, y: 36.486584, z: 80}
nodePos: {x: 88.78637, y: -161.51326, z: 155}
line: 9
column: 4
fatherLevelNodes: []
@ -449,40 +447,166 @@ MonoBehaviour:
- levelDataList:
- roomType: 2
isUse: 0
nodePos: {x: -94.21361, y: 58.48655, z: 80}
nodePos: {x: 110.78637, y: -161.51326, z: 95}
line: 10
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 2
isUse: 0
nodePos: {x: -79.213615, y: 58.48655, z: 80}
nodePos: {x: 110.78637, y: -161.51326, z: 110}
line: 10
column: 1
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 2
isUse: 1
nodePos: {x: -64.213615, y: 58.48655, z: 80}
nodePos: {x: 110.78637, y: -161.51326, z: 125}
line: 10
column: 2
fatherLevelNodes:
- {x: 9, y: 2}
- {x: 9, y: 1}
- {x: 9, y: 3}
- {x: 9, y: 3}
- {x: 9, y: 1}
- {x: 9, y: 3}
nextLevelNodes: []
- roomType: 2
isUse: 0
nodePos: {x: -49.213615, y: 58.48655, z: 80}
nodePos: {x: 110.78637, y: -161.51326, z: 140}
line: 10
column: 3
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 2
isUse: 0
nodePos: {x: -34.213608, y: 58.48655, z: 80}
nodePos: {x: 110.78637, y: -161.51326, z: 155}
line: 10
column: 4
fatherLevelNodes: []
nextLevelNodes: []
- levelDataList:
- roomType: 0
isUse: 1
nodePos: {x: 14.822048, y: 0.059877396, z: -9.539112}
line: 11
column: 0
fatherLevelNodes:
- {x: 10, y: 1}
nextLevelNodes:
- {x: 12, y: 1}
- roomType: 1
isUse: 0
nodePos: {x: 14.822052, y: 0.059877396, z: -8.039112}
line: 11
column: 1
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 5
isUse: 1
nodePos: {x: 14.822058, y: 0.059879303, z: -6.5391116}
line: 11
column: 2
fatherLevelNodes:
- {x: 10, y: 3}
nextLevelNodes:
- {x: 12, y: 1}
- roomType: 0
isUse: 1
nodePos: {x: 14.82206, y: 0.05988121, z: -5.0391154}
line: 11
column: 3
fatherLevelNodes:
- {x: 10, y: 4}
- {x: 10, y: 3}
nextLevelNodes:
- {x: 12, y: 3}
- roomType: 1
isUse: 0
nodePos: {x: 14.822063, y: 0.059883118, z: -3.5391173}
line: 11
column: 4
fatherLevelNodes: []
nextLevelNodes: []
- levelDataList:
- roomType: 4
isUse: 0
nodePos: {x: 17.022072, y: 0.059892654, z: -9.539112}
line: 12
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 4
isUse: 1
nodePos: {x: 17.022074, y: 0.059892654, z: -8.039112}
line: 12
column: 1
fatherLevelNodes:
- {x: 11, y: 0}
- {x: 11, y: 2}
nextLevelNodes:
- {x: 13, y: 2}
- {x: 13, y: 2}
- roomType: 4
isUse: 0
nodePos: {x: 17.022076, y: 0.05989456, z: -6.5391126}
line: 12
column: 2
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 4
isUse: 1
nodePos: {x: 17.02208, y: 0.05989647, z: -5.0391145}
line: 12
column: 3
fatherLevelNodes:
- {x: 11, y: 3}
nextLevelNodes:
- {x: 13, y: 2}
- {x: 13, y: 2}
- roomType: 4
isUse: 0
nodePos: {x: 17.022083, y: 0.059898376, z: -3.5391164}
line: 12
column: 4
fatherLevelNodes: []
nextLevelNodes: []
- levelDataList:
- roomType: 2
isUse: 0
nodePos: {x: 19.222101, y: 0.059907913, z: -9.539112}
line: 13
column: 0
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 2
isUse: 0
nodePos: {x: 19.222109, y: 0.059907913, z: -8.039112}
line: 13
column: 1
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 2
isUse: 1
nodePos: {x: 19.222116, y: 0.05990982, z: -6.5391126}
line: 13
column: 2
fatherLevelNodes:
- {x: 12, y: 1}
- {x: 12, y: 3}
- {x: 12, y: 3}
- {x: 12, y: 1}
nextLevelNodes: []
- roomType: 2
isUse: 0
nodePos: {x: 19.222124, y: 0.059911728, z: -5.0391154}
line: 13
column: 3
fatherLevelNodes: []
nextLevelNodes: []
- roomType: 2
isUse: 0
nodePos: {x: 19.222132, y: 0.059913635, z: -3.5391183}
line: 13
column: 4
fatherLevelNodes: []
nextLevelNodes: []

8
ColorlessWorld-2024-4-2/Assets/Prefab/Shop.meta

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

463
ColorlessWorld-2024-4-2/Assets/Prefab/Shop/CardSaleNode.prefab

@ -0,0 +1,463 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &838295673585623619
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7915831337235156445}
- component: {fileID: 6322241254465056546}
- component: {fileID: 2639942790468547799}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &7915831337235156445
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 838295673585623619}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2314081187666346444}
m_Father: {fileID: 8829765464317796724}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0, y: -0.000011444}
m_SizeDelta: {x: 125, y: 200}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6322241254465056546
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 838295673585623619}
m_CullTransparentMesh: 1
--- !u!114 &2639942790468547799
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 838295673585623619}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &1562581748129330478
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 347685545341387901}
- component: {fileID: 2406025745670930988}
- component: {fileID: 2213081689434010325}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &347685545341387901
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1562581748129330478}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8829765464317796724}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -125}
m_SizeDelta: {x: 125, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2406025745670930988
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1562581748129330478}
m_CullTransparentMesh: 1
--- !u!114 &2213081689434010325
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1562581748129330478}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 20
m_FontStyle: 1
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 100
--- !u!1 &2512465298358236710
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2314081187666346444}
- component: {fileID: 3911109875628629789}
- component: {fileID: 8371652563025682638}
m_Layer: 5
m_Name: text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2314081187666346444
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2512465298358236710}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -0.00009203222}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7915831337235156445}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -0.0004043579, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3911109875628629789
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2512465298358236710}
m_CullTransparentMesh: 1
--- !u!114 &8371652563025682638
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2512465298358236710}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 3
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u5356\u6389\u4E86"
--- !u!1 &3596646879074083607
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7842538899241189895}
- component: {fileID: 3870997730806527126}
- component: {fileID: 7044942857593469041}
- component: {fileID: 8709606838814003855}
m_Layer: 5
m_Name: Button (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7842538899241189895
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3596646879074083607}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8829765464317796724}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -0.0000076293945}
m_SizeDelta: {x: 125, y: 200}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3870997730806527126
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3596646879074083607}
m_CullTransparentMesh: 1
--- !u!114 &7044942857593469041
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3596646879074083607}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &8709606838814003855
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3596646879074083607}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 7044942857593469041}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2680065429360548468}
m_TargetAssemblyTypeName: CardSaleNode, Assembly-CSharp
m_MethodName: BuyCard
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!1 &5262991169384419118
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8829765464317796724}
- component: {fileID: 6347781318677948713}
- component: {fileID: 293157649599244195}
- component: {fileID: 2680065429360548468}
m_Layer: 5
m_Name: CardSaleNode
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8829765464317796724
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5262991169384419118}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.2, y: 1.2, z: 1.2}
m_ConstrainProportionsScale: 1
m_Children:
- {fileID: 347685545341387901}
- {fileID: 7842538899241189895}
- {fileID: 7915831337235156445}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6347781318677948713
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5262991169384419118}
m_CullTransparentMesh: 1
--- !u!114 &293157649599244195
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5262991169384419118}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.392}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &2680065429360548468
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5262991169384419118}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 31a66cdcc2fccc5408555c54bc2ce621, type: 3}
m_Name:
m_EditorClassIdentifier:
price: 100
priceText: {fileID: 2213081689434010325}
saledMark: {fileID: 838295673585623619}
cardID:

7
ColorlessWorld-2024-4-2/Assets/Prefab/Shop/CardSaleNode.prefab.meta

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

41
ColorlessWorld-2024-4-2/Assets/Scenes/Map.unity

@ -374,8 +374,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.00000095367, y: 1.262}
m_SizeDelta: {x: 166, y: 99.679}
m_AnchoredPosition: {x: -0.017, y: 1.262}
m_SizeDelta: {x: 150.465, y: 99.679}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &188589022
MonoBehaviour:
@ -391,8 +391,8 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Content: {fileID: 1343826539}
m_Horizontal: 1
m_Vertical: 1
m_MovementType: 1
m_Vertical: 0
m_MovementType: 2
m_Elasticity: 0.1
m_Inertia: 1
m_DecelerationRate: 0.135
@ -735,7 +735,7 @@ Camera:
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
field of view: 50
orthographic: 0
orthographic size: 5
m_Depth: -1
@ -762,7 +762,7 @@ Transform:
m_GameObject: {fileID: 278223036}
serializedVersion: 2
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: 5.2, y: 10.8, z: 3.6}
m_LocalPosition: {x: 5.2, y: 10.8, z: 3.08}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -1011,6 +1011,9 @@ MonoBehaviour:
- levelColumn: []
- levelColumn: []
- levelColumn: []
- levelColumn: []
- levelColumn: []
- levelColumn: []
monsterIcon: {fileID: 21300000, guid: 76c98050a10569a47b1a39a896495b71, type: 3}
eliteMonsterIcon: {fileID: 21300000, guid: 646e58a8cd5cd2145bf0985299361fa8, type: 3}
bossIcon: {fileID: 21300000, guid: a61b314c8ac7c44468531f8788cfafcc, type: 3}
@ -1918,7 +1921,7 @@ MonoBehaviour:
m_LookAt: {fileID: 0}
m_Follow: {fileID: 0}
m_Lens:
FieldOfView: 60
FieldOfView: 50
OrthographicSize: 5
NearClipPlane: 0.3
FarClipPlane: 1000
@ -1945,7 +1948,7 @@ Transform:
m_GameObject: {fileID: 837088610}
serializedVersion: 2
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: 5.2, y: 10.8, z: 3.6}
m_LocalPosition: {x: 5.2, y: 10.8, z: 3.08}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
@ -2095,7 +2098,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: -0}
m_AnchoredPosition: {x: 0, y: -3.62}
m_SizeDelta: {x: 0, y: 4.391}
m_Pivot: {x: 0, y: 0}
--- !u!114 &854494968
@ -2141,8 +2144,8 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 53920778}
m_HandleRect: {fileID: 53920777}
m_Direction: 0
m_Value: 0.000000114398205
m_Size: 0.3835789
m_Value: 0.00000029554465
m_Size: 0.49275732
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
@ -3300,7 +3303,7 @@ MonoBehaviour:
lineRenderer: {fileID: 1218299172}
generatorPoint: {fileID: 1941874171}
originalPoint: {x: 0, y: 0, z: 0}
generatorLine: 11
generatorLine: 14
generatorColumn: 5
lineOffset: 1.5
columnOffset: 2.2
@ -3466,7 +3469,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1241209780
RectTransform:
m_ObjectHideFlags: 0
@ -3483,8 +3486,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -94.5, y: 3.4}
m_SizeDelta: {x: 110, y: 250}
m_AnchoredPosition: {x: 0.19999695, y: 4.4449997}
m_SizeDelta: {x: 102.035, y: 250}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1241209781
MonoBehaviour:
@ -3777,8 +3780,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 266.766, y: 108.945}
m_AnchoredPosition: {x: -0, y: 0}
m_SizeDelta: {x: 154.888, y: 108.945}
m_Pivot: {x: 0, y: 1}
--- !u!1 &1387789436
GameObject:
@ -4408,7 +4411,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: -0.062699795, y: 3.37}
m_AnchoredPosition: {x: -0.062699795, y: 1.88}
m_SizeDelta: {x: 166, y: 108}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1689026856
@ -5015,7 +5018,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -200, y: -32.5}
m_AnchoredPosition: {x: -146.6, y: -40}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1957780050

2457
ColorlessWorld-2024-4-2/Assets/Scenes/Shop.unity

File diff suppressed because it is too large

12
ColorlessWorld-2024-4-2/Assets/Scripts/LeveProcess/LevelGenerator.cs

@ -79,7 +79,7 @@ public class LevelGenerator : Singleton<LevelGenerator>
for (int j = 0; j < generatorColumn; j++)
{
generatorPoint.transform.position = new Vector3(generatorPoint.transform.position.x , 0, generatorPoint.transform.position.z + lineOffset);
generatorPoint.transform.position = new Vector3(generatorPoint.transform.position.x , generatorPoint.transform.position.y, generatorPoint.transform.position.z + lineOffset);
var level = Instantiate(levelPrefab, generatorPoint.transform.position, levelPrefab.transform.rotation);
level.transform.SetParent(LevelDevelopManager.Instance.levelFather.transform);
@ -96,13 +96,13 @@ public class LevelGenerator : Singleton<LevelGenerator>
{
for (int j = 0; j < generatorColumn; j++)
{
generatorPoint.transform.position = new Vector3(generatorPoint.transform.position.x ,0 , generatorPoint.transform.position.z + lineOffset);
generatorPoint.transform.position = new Vector3(generatorPoint.transform.position.x , generatorPoint.transform.position.y, generatorPoint.transform.position.z + lineOffset);
GenerateLevelNode(i,j, generatorPoint.transform.position);
}
}
generatorPoint.transform.position = new Vector3(generatorPoint.transform.position.x + columnOffset, 0 , originalPoint.z );
generatorPoint.transform.position = new Vector3(generatorPoint.transform.position.x + columnOffset, generatorPoint.transform.position.y, originalPoint.z );
}
}
@ -130,8 +130,10 @@ public class LevelGenerator : Singleton<LevelGenerator>
{
Debug.Log(index);
}
return startPoints;
// return startPoints;
List<int> startPoints2 = new List<int>() {0,1,3,4 };
return startPoints2;
}
//Éú³É·Ïß

5
ColorlessWorld-2024-4-2/Assets/Scripts/Shop/CardMapNode.cs

@ -17,4 +17,9 @@ public class CardMapNode : MonoBehaviour
{
ChangeColorMangaer.Instance.GenerateOriginalCard(cardEntity.cardId);
}
public void DeleteCard()
{
ShopManager.Instance.deleteCardID = cardEntity .CardId ;
ShopManager.Instance.confirmDeletePlane.SetActive(true);
}
}

17
ColorlessWorld-2024-4-2/Assets/Scripts/Shop/CardSaleNode.cs

@ -0,0 +1,17 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CardSaleNode : MonoBehaviour
{
public int price;
public Text priceText;
public GameObject saledMark;
public string cardID;
public void BuyCard()
{
saledMark.SetActive(true);
ShopManager.Instance.cardDeck.Add(cardID);
}
}

11
ColorlessWorld-2024-4-2/Assets/Scripts/Shop/CardSaleNode.cs.meta

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 31a66cdcc2fccc5408555c54bc2ce621
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

3
ColorlessWorld-2024-4-2/Assets/Scripts/Shop/ChangeColorMangaer.cs

@ -64,7 +64,7 @@ public class ChangeColorMangaer : Singleton<ChangeColorMangaer>
var card = PlayerStatsManager.Instance.CreateCardWithIDForLook(cardID, creatFather);
card.transform.localScale = new Vector3(3, 3, 3);
card.transform.localPosition = cardPoint.localPosition;
originalCardEntity = card.GetComponent<CardEntity>();
originalCardEntity = card.GetComponent<CardEntity>();
}
@ -73,6 +73,7 @@ public class ChangeColorMangaer : Singleton<ChangeColorMangaer>
if (newCardEntity != null)
{
ShopManager.Instance.cardDeck.Add(newCardEntity.cardId);
ShopManager.Instance.cardDeck.Remove(originalCardEntity.cardId);
ShopManager.Instance.canChangeColor = false;
}
}

57
ColorlessWorld-2024-4-2/Assets/Scripts/Shop/ShopManager.cs

@ -12,12 +12,20 @@ public class ShopManager : Singleton <ShopManager>
public GameObject cardMapPanle;//看卡浏览界面
[Header("删卡界面")]
public string deleteCardID;//将要删除的卡
public bool candeleteCard = true ;//是否能删除
public GameObject confirmDeletePlane;//确认删除面板
[Header("改色界面")]
public bool canChangeColor = true;//是否能改色
[Header("售卡界面")]
public int selectedSaleIndex;
public List<CardDataForChooseUI> saleCardList = new List<CardDataForChooseUI>();
public Transform cardFather;
public int cardCount;
public GameObject saleCardNode;
[Header("无色卡售卡界面")]
public Transform cardNoneColorFather;
[Header("角色状态数据参数")]
public List<string> cardDeck = new List<string>();
public PlayerState_SO templatePlayerState;//角色数据ScriptableObject模板
@ -36,7 +44,7 @@ public class ShopManager : Singleton <ShopManager>
if(candeleteCard )
{
cardMapPanle.SetActive(true);
GenerateCardMap();
GenerateDeleteCardMap();
}
}
public void ChangeCholorChoosePanle()
@ -44,15 +52,16 @@ public class ShopManager : Singleton <ShopManager>
if (canChangeColor)
{
cardMapPanle.SetActive(true);
GenerateCardMap();
GenerateColorCardMap();
}
}
public void DeleteSelectedCard()
{
cardDeck.Remove(deleteCardID);
candeleteCard = false;
}
public void GenerateCardMap()
public void GenerateColorCardMap()
{
foreach (var card in cardMap)
{
@ -69,18 +78,40 @@ public class ShopManager : Singleton <ShopManager>
cardMap.Add(card);
}
}
public void GenerateDeleteCardMap()
{
foreach (var card in cardMap)
{
Destroy(card);
}
cardMap.Clear();
cardFatherPanle.GetComponent<RectTransform>().sizeDelta = new Vector2(cardFatherPanle.GetComponent<RectTransform>().sizeDelta.x, (cardDeck.Count % 5 + 1) * 350);
for (int i = 0; i < cardDeck.Count; i++)
{
var card = PlayerStatsManager.Instance.CreateCardWithIDForLook(cardDeck[i], cardFatherPanle.transform);
CardMapNode cardMapNode = card.GetComponent<CardMapNode>();
cardMapNode.button.onClick.AddListener(cardMapNode.DeleteCard);
cardMap.Add(card);
}
}
//组装售卡列表
public void SaleCardSetUP()
{
for(int i=0;i< saleCardList.Count;i++)
for(int i=0;i< cardCount;i++)
{
int cardId = (int)Random.Range(10001, 10005);
saleCardList[i].createCard(cardId.ToString(), i);
saleCardList[i].price = i*10;
saleCardList[i].discount = 1;
saleCardList[i].SetUpSaleCard();
int cardId = (int)Random.Range(1001, 1004);
var currentSaleCardNode = Instantiate(saleCardNode, cardFather);
var card = PlayerStatsManager.Instance.CreateCardWithIDForLook(cardId.ToString(), currentSaleCardNode.transform);
card.transform.localPosition = new Vector3(0, 0, 0);
card.transform.SetAsFirstSibling();
currentSaleCardNode.GetComponent<CardSaleNode>().cardID = cardId.ToString ();
}
int noneColorCardId = (int)Random.Range(1001, 1004);
var noneColorCardNode = Instantiate(saleCardNode, cardNoneColorFather);
var noneColorCard = PlayerStatsManager.Instance.CreateCardWithIDForLook(noneColorCardId.ToString(), noneColorCardNode.transform);
noneColorCard.transform.localPosition = new Vector3(0, 0, 0);
noneColorCard.transform.SetAsFirstSibling();
noneColorCardNode.GetComponent<CardSaleNode>().cardID = noneColorCardId.ToString();
}
}

Loading…
Cancel
Save