Browse Source

0825提交

pull/182/head
yjm484 4 months ago
parent
commit
01a57fb973
  1. 634
      ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Cactus.prefab
  2. 7
      ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Cactus.prefab.meta
  3. 634
      ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Spruce.prefab
  4. 7
      ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Spruce.prefab.meta
  5. 2
      ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockItemManager.cs
  6. 15
      ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode.cs
  7. 28
      ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode/Cactus.cs
  8. 11
      ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode/Cactus.cs.meta
  9. 28
      ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode/Spruce.cs
  10. 11
      ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode/Spruce.cs.meta
  11. 131
      ColorlessWorld-2024-4-2/Assets/Scripts/MapUnity.cs
  12. 11
      ColorlessWorld-2024-4-2/Assets/Scripts/Tool/Name.cs
  13. 8
      ColorlessWorld-2024-4-2/Assets/Scripts/Weapon/Weapon.cs
  14. 22
      ColorlessWorld-2024-4-2/Assets/Scripts/manager/CardManager.cs

634
ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Cactus.prefab

@ -0,0 +1,634 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1428554102006219847
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6396602256887711825}
- component: {fileID: 6342757457008301573}
- component: {fileID: 2879751854545988480}
- component: {fileID: 2778690875849209487}
- component: {fileID: 3481001194713140367}
m_Layer: 0
m_Name: Cactus
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6396602256887711825
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
serializedVersion: 2
m_LocalRotation: {x: 0.5479635, y: -0.025191309, z: -0.01651995, w: 0.8359596}
m_LocalPosition: {x: 4.92, y: 0.44, z: 2.59}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 705775716958268310}
- {fileID: 848275176393022762}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 66.251, y: -8.6, z: -7.882}
--- !u!114 &6342757457008301573
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d99a212ab38d69947b365e3770680781, type: 3}
m_Name:
m_EditorClassIdentifier:
takeOverType: 0
--- !u!114 &2879751854545988480
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6380cc4c8bf88d443ac01e2b67f7dd3d, type: 3}
m_Name:
m_EditorClassIdentifier:
inMapUnity: {fileID: 0}
--- !u!135 &2778690875849209487
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Radius: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &3481001194713140367
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8dc69746d7e96c249a0105a35b50d0be, type: 3}
m_Name:
m_EditorClassIdentifier:
inforObject: {fileID: 1750499595799098494}
inforOffset: {x: 1, y: 0, z: 0}
time: 0.5
isShow: 0
--- !u!1 &1750499595799098494
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 848275176393022762}
- component: {fileID: 1192243308956288658}
- component: {fileID: 2495056066629937270}
- component: {fileID: 4573494141980100699}
m_Layer: 0
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &848275176393022762
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1750499595799098494}
m_LocalRotation: {x: -0, y: -0, z: -9.3132246e-10, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -4.72}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3899387869649645843}
m_Father: {fileID: 6396602256887711825}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: -0.61, y: -0.41}
m_SizeDelta: {x: 1.6, y: 1}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!223 &1192243308956288658
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1750499595799098494}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 2
m_Camera: {fileID: 0}
m_PlaneDistance: 7
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 1637390125
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &2495056066629937270
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1750499595799098494}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 1
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 1
--- !u!114 &4573494141980100699
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1750499595799098494}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!1 &2541326599793436537
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6470614580718344835}
- component: {fileID: 3293697954913444278}
- component: {fileID: 6958780847326657244}
m_Layer: 0
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6470614580718344835
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2541326599793436537}
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: 3899387869649645843}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0.034179688, y: 0.38909912}
m_SizeDelta: {x: -0.0685, y: -0.7781}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3293697954913444278
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2541326599793436537}
m_CullTransparentMesh: 1
--- !u!114 &6958780847326657244
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2541326599793436537}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Cultist
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: d12673ed3c85b3743b660f41c0db6c7b, type: 2}
m_sharedMaterial: {fileID: -4989954011452443200, guid: d12673ed3c85b3743b660f41c0db6c7b,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 0.15
m_fontSizeBase: 0.15
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &4287565917304471275
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5194110328012064918}
- component: {fileID: 6454565772953952992}
- component: {fileID: 962216741103017538}
m_Layer: 0
m_Name: Text (TMP) (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5194110328012064918
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4287565917304471275}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -0.000000084085}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3899387869649645843}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0.034240723, y: -0.101501465}
m_SizeDelta: {x: -0.06845, y: -0.2031}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6454565772953952992
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4287565917304471275}
m_CullTransparentMesh: 1
--- !u!114 &962216741103017538
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4287565917304471275}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: d12673ed3c85b3743b660f41c0db6c7b, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 0.15
m_fontSizeBase: 0.15
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &5990552096368373457
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 705775716958268310}
- component: {fileID: 3619746115033673689}
m_Layer: 0
m_Name: Circle
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &705775716958268310
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5990552096368373457}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.484, z: -0.533}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6396602256887711825}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &3619746115033673689
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5990552096368373457}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 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: 2
m_Sprite: {fileID: 21300000, guid: 1b3c972c381afb845bb151b8f485f662, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &8092019030348352648
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3899387869649645843}
- component: {fileID: 2176848140750897563}
- component: {fileID: 7127438293867462074}
m_Layer: 0
m_Name: Panel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &3899387869649645843
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8092019030348352648}
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: 6470614580718344835}
- {fileID: 5194110328012064918}
m_Father: {fileID: 848275176393022762}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2176848140750897563
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8092019030348352648}
m_CullTransparentMesh: 1
--- !u!114 &7127438293867462074
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8092019030348352648}
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: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: b3eb51b644a6858478e0cb59f8bf44f2, type: 3}
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: 15

7
ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Cactus.prefab.meta

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

634
ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Spruce.prefab

@ -0,0 +1,634 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1428554102006219847
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6396602256887711825}
- component: {fileID: 6342757457008301573}
- component: {fileID: 3693349617741933631}
- component: {fileID: 2778690875849209487}
- component: {fileID: 3481001194713140367}
m_Layer: 0
m_Name: Spruce
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6396602256887711825
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
serializedVersion: 2
m_LocalRotation: {x: 0.5479635, y: -0.025191309, z: -0.01651995, w: 0.8359596}
m_LocalPosition: {x: 4.92, y: 0.44, z: 2.59}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 705775716958268310}
- {fileID: 848275176393022762}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 66.251, y: -8.6, z: -7.882}
--- !u!114 &6342757457008301573
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d99a212ab38d69947b365e3770680781, type: 3}
m_Name:
m_EditorClassIdentifier:
takeOverType: 0
--- !u!114 &3693349617741933631
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a3a560bf8b762b64facad2ab3c1869d5, type: 3}
m_Name:
m_EditorClassIdentifier:
inMapUnity: {fileID: 0}
--- !u!135 &2778690875849209487
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Radius: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &3481001194713140367
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1428554102006219847}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8dc69746d7e96c249a0105a35b50d0be, type: 3}
m_Name:
m_EditorClassIdentifier:
inforObject: {fileID: 1750499595799098494}
inforOffset: {x: 1, y: 0, z: 0}
time: 0.5
isShow: 0
--- !u!1 &1750499595799098494
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 848275176393022762}
- component: {fileID: 1192243308956288658}
- component: {fileID: 2495056066629937270}
- component: {fileID: 4573494141980100699}
m_Layer: 0
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &848275176393022762
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1750499595799098494}
m_LocalRotation: {x: -0, y: -0, z: -9.3132246e-10, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -4.72}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3899387869649645843}
m_Father: {fileID: 6396602256887711825}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: -0.61, y: -0.41}
m_SizeDelta: {x: 1.6, y: 1}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!223 &1192243308956288658
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1750499595799098494}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 2
m_Camera: {fileID: 0}
m_PlaneDistance: 7
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 1637390125
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &2495056066629937270
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1750499595799098494}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 1
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 1
--- !u!114 &4573494141980100699
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1750499595799098494}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!1 &2541326599793436537
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6470614580718344835}
- component: {fileID: 3293697954913444278}
- component: {fileID: 6958780847326657244}
m_Layer: 0
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6470614580718344835
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2541326599793436537}
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: 3899387869649645843}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0.034179688, y: 0.38909912}
m_SizeDelta: {x: -0.0685, y: -0.7781}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3293697954913444278
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2541326599793436537}
m_CullTransparentMesh: 1
--- !u!114 &6958780847326657244
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2541326599793436537}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Cultist
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: d12673ed3c85b3743b660f41c0db6c7b, type: 2}
m_sharedMaterial: {fileID: -4989954011452443200, guid: d12673ed3c85b3743b660f41c0db6c7b,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 0.15
m_fontSizeBase: 0.15
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &4287565917304471275
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5194110328012064918}
- component: {fileID: 6454565772953952992}
- component: {fileID: 962216741103017538}
m_Layer: 0
m_Name: Text (TMP) (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5194110328012064918
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4287565917304471275}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -0.000000084085}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3899387869649645843}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0.034240723, y: -0.101501465}
m_SizeDelta: {x: -0.06845, y: -0.2031}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6454565772953952992
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4287565917304471275}
m_CullTransparentMesh: 1
--- !u!114 &962216741103017538
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4287565917304471275}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: d12673ed3c85b3743b660f41c0db6c7b, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 0.15
m_fontSizeBase: 0.15
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &5990552096368373457
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 705775716958268310}
- component: {fileID: 3619746115033673689}
m_Layer: 0
m_Name: Circle
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &705775716958268310
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5990552096368373457}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.484, z: -0.533}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6396602256887711825}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &3619746115033673689
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5990552096368373457}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 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: 2
m_Sprite: {fileID: 21300000, guid: 1b3c972c381afb845bb151b8f485f662, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &8092019030348352648
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3899387869649645843}
- component: {fileID: 2176848140750897563}
- component: {fileID: 7127438293867462074}
m_Layer: 0
m_Name: Panel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &3899387869649645843
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8092019030348352648}
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: 6470614580718344835}
- {fileID: 5194110328012064918}
m_Father: {fileID: 848275176393022762}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2176848140750897563
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8092019030348352648}
m_CullTransparentMesh: 1
--- !u!114 &7127438293867462074
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8092019030348352648}
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: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: b3eb51b644a6858478e0cb59f8bf44f2, type: 3}
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: 15

7
ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Spruce.prefab.meta

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

2
ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockItemManager.cs

@ -10,6 +10,8 @@ public class BlockItemManager : Singleton<BlockItemManager>
//所有据点地块结算
public event Action holdEffectSycn;
public List<MapUnity> nodeWithItemList=new List<MapUnity>();
public void BroadBlockEffectSycn()
{
if (blockEffectSycn != null)

15
ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode.cs

@ -7,6 +7,7 @@ public class BlockNode : MonoBehaviour
{
public MapUnity inMapUnity;//ÔÚÄĸöµØ¿éÉÏ
public Tuple<string,int> provideNodeAndCount= new Tuple<string, int>(Name.none, 0);
public int provideScore = 0;
private void OnEnable()
{
@ -20,12 +21,21 @@ public class BlockNode : MonoBehaviour
public virtual void Resgiste()
{
if (BlockItemManager.Instance != null)
{
BlockItemManager.Instance.blockEffectSycn += SettleEffect;
BlockItemManager.Instance.nodeWithItemList.Add(inMapUnity);
}
}
public virtual void CancelResgiste()
{
if (BlockItemManager.Instance != null)
{
BlockItemManager.Instance.blockEffectSycn -= SettleEffect;
BlockItemManager.Instance.nodeWithItemList.Remove(inMapUnity);
}
}
private void Start()
{
@ -41,4 +51,9 @@ public class BlockNode : MonoBehaviour
}
public virtual void SettleScore()
{
}
}

28
ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode/Cactus.cs

@ -0,0 +1,28 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class Cactus : BlockNode
{
private void Update()
{
if (inMapUnity.whoColour.Equals(Name.NodeColor.Red))
{
provideNodeAndCount = Tuple.Create(Name.Color.Red, 2);
}
else
{
provideNodeAndCount = new Tuple<string, int>(Name.none, 0);
}
}
public override void SettleEffect()
{
if (inMapUnity.whoColour.Equals(Name.NodeColor.Blue))
{
DestroyImmediate(this.gameObject);
}
}
}

11
ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode/Cactus.cs.meta

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

28
ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode/Spruce.cs

@ -0,0 +1,28 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class Spruce : BlockNode
{
private void Update()
{
if (inMapUnity.whoColour.Equals(Name.NodeColor.Blue))
{
provideNodeAndCount = Tuple.Create(Name.Color.Blue, 2);
}
else
{
provideNodeAndCount = new Tuple<string, int>(Name.none, 0);
}
}
public override void SettleEffect()
{
if (inMapUnity.whoColour.Equals(Name.NodeColor.Red))
{
DestroyImmediate(this.gameObject);
}
}
}

11
ColorlessWorld-2024-4-2/Assets/Scripts/Item/BlockNode/BlockNode/Spruce.cs.meta

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

131
ColorlessWorld-2024-4-2/Assets/Scripts/MapUnity.cs

@ -232,7 +232,92 @@ public class MapUnity : MonoBehaviour
public void switchColor(string newColorString)
{
int newColor=10;
if (newColorString.Split("_").Length>1)
{
foreach (string str in newColorString.Split("_"))
{
switchNodeOrItem(newColorString);
}
}
else
{
switchSingleNodeOrItem(newColorString);
}
}
public void switchSingleNodeOrItem(string newColorString)
{
int newColor = 10;
//GameManager.Instance.enemyTargetNode=getNodeTools.getBestTargetNodeForEnemyCard(new string[1] { "0_0" }, new string[1] { "black" });
Debug.Log("switchColor");
//重新结算武器节点
StartCoroutine(SettleWeaponNode());
//重新结算领域
StartCoroutine(SettleDomain());
/* if(WeaponManager .Instance != null )
{
WeaponManager.Instance.isMapChange = true;
WeaponManager.Instance.ResetAllNodeBool();
}*/
foreach (MapUnity node in getNodeTools.getAllNodes())
{
if (node.isCaledDictionary != null || isCaledDictionary.Count != 0)
{
foreach (string key in node.isCaledDictionary.Keys.ToList())
{
BoolPair pair = node.isCaledDictionary[key];
pair.isChecked = false;
pair.checkResult = false;
node.isCaledDictionary[key] = pair;
}
}
/*node.isCaledDictionary.Keys.ToList().ForEach(key =>
{
isCaledDictionary[key].isChecked = false;
});*/
}
if (Name.NodeItem.AllItem.Contains(newColorString))
{
CardManager.Instance.setItemForSingeNode(newColorString, this);
RefreshWhoColor();
return;
}
else
{
newColor = Name.stringColorToint(newColorString);
}
if (canChange == false)
{
return;
}
if (whoColour == newColor)
{
return;
}
if(whoColour== Name.NodeColor.Holy&&newColor!= Name.NodeColor.Curse)
{
return ;
}
if (whoColour == Name.NodeColor.Curse && newColor != Name.NodeColor.Holy)
{
return;
}
MapUnityManager.Instance.switchNodeNum++;
if (whoColour != 6 && whoColour != 10)
{
whoColour = newColor;
BombAct(newColor);
RefreshWhoColor();
}
}
public void switchNodeOrItem(string newColorString)
{
int newColor = 10;
//GameManager.Instance.enemyTargetNode=getNodeTools.getBestTargetNodeForEnemyCard(new string[1] { "0_0" }, new string[1] { "black" });
Debug.Log("switchColor");
//重新结算武器节点
@ -247,13 +332,13 @@ public class MapUnity : MonoBehaviour
foreach (MapUnity node in getNodeTools.getAllNodes())
{
if (node.isCaledDictionary != null||isCaledDictionary.Count!=0)
if (node.isCaledDictionary != null || isCaledDictionary.Count != 0)
{
foreach (string key in node.isCaledDictionary.Keys.ToList())
foreach (string key in node.isCaledDictionary.Keys.ToList())
{
BoolPair pair = node.isCaledDictionary[key];
pair.isChecked = false;
pair.checkResult = false;
pair.checkResult = false;
node.isCaledDictionary[key] = pair;
}
}
@ -270,34 +355,38 @@ public class MapUnity : MonoBehaviour
}
else
{
newColor=Name.stringColorToint(newColorString);
newColor = Name.stringColorToint(newColorString);
}
if (canChange==false||whoColour==Name.NodeColor.Holy|| whoColour == Name.NodeColor.Curse)
if (canChange == false || whoColour == Name.NodeColor.Holy || whoColour == Name.NodeColor.Curse)
{
return;
}
if (newColor==Name.NodeColor.Lava&&blockNode!=null)
{
DestroyImmediate(blockNode.gameObject);
}
if (whoColour == newColor)
{
return;
}
MapUnityManager.Instance.switchNodeNum++;
if (LegacyManager.Instance.isUseful(Name.Legacy.LegacyNode_Filter)&&whoColour==Name.NodeColor.Black)
if (LegacyManager.Instance.isUseful(Name.Legacy.LegacyNode_Filter) && whoColour == Name.NodeColor.Black)
{
Usermanager.Instance.Shield += Usermanager.Instance.ShieldCalculation(1);
}
if (LegacyManager.Instance.isUseful(Name.Legacy.LegacyNode_PurityBadge) && whoColour == Name.NodeColor.Black)
{
SettlementManager.Instance.damageWork(4, getNodeTools.getAllNodes().ToList(), 0);
LegacyManager.Instance.legacyNodesList[Name.Legacy.LegacyNode_PurityBadge].isUseful=false;
LegacyManager.Instance.legacyNodesList[Name.Legacy.LegacyNode_PurityBadge].isUseful = false;
}
if (LegacyManager.Instance.relicClassNameList.Contains(Name.Legacy.LegacyNode_ChaosTrigger))
{
LegacyNode_ChaosTrigger legacyNode_ChaosTrigger = (LegacyNode_ChaosTrigger)LegacyManager.Instance.legacyNodesList[Name.Legacy.LegacyNode_ChaosTrigger];
switch (newColor)
{
case Name.NodeColor.Yellow:
legacyNode_ChaosTrigger.yellowTrigger=true;
legacyNode_ChaosTrigger.yellowTrigger = true;
break;
case Name.NodeColor.Blue:
legacyNode_ChaosTrigger.blueTrigger = true;
@ -307,13 +396,12 @@ public class MapUnity : MonoBehaviour
break;
}
}
if (whoColour!=6&& whoColour != 10)
if (whoColour != 6 && whoColour != 10)
{
whoColour = newColor;
BombAct(newColor);
RefreshWhoColor();
}
}
}
//锻造界面调用
public void switchColorForging(string newColorString)
@ -561,6 +649,18 @@ public class MapUnity : MonoBehaviour
}
floodPanel.sprite = redFlood;
}
else if (whoColour == Name.NodeColor.Lava)
{
if (currentTexture != null)
{
colourGameObject.GetComponent<Renderer>().material.SetTexture("_Texture2D", currentTexture);
}
else
{
colourGameObject.GetComponent<Renderer>().material.SetTexture("_Texture2D", redColour[UnityEngine.Random.Range(0, redColour.Count)]);
}
floodPanel.sprite = redFlood;
}
else if (whoColour == Name.NodeColor.Black)
{
if (currentTexture != null)
@ -653,6 +753,11 @@ public class MapUnity : MonoBehaviour
currentTexture = redColour[UnityEngine.Random.Range(0, redColour.Count)];
colourAnimGameObject.GetComponent<Renderer>().material.SetTexture("_Texture2D", currentTexture);
}
else if (whoColour == Name.NodeColor.Lava)
{
currentTexture = redColour[UnityEngine.Random.Range(0, redColour.Count)];
colourAnimGameObject.GetComponent<Renderer>().material.SetTexture("_Texture2D", currentTexture);
}
else if (whoColour == Name.NodeColor.Black)
{
currentTexture = blackColour[UnityEngine.Random.Range(0, blackColour.Count)];

11
ColorlessWorld-2024-4-2/Assets/Scripts/Tool/Name.cs

@ -803,6 +803,7 @@ public static class Name
public const int Yellow = 7;
public const int Holy = 8;
public const int Curse = 9;
public const int Lava = 11;
public static readonly List<int> PlayerColor = new() { Red, Blue, Yellow , Green };
public static readonly List<int> EnemyColor = new() { Black, Curse };
public static readonly List<int> PlayerAndWhiteColor = new() { Red, Blue, Yellow, Green,White };
@ -832,6 +833,8 @@ public static class Name
intcolor = NodeColor.Holy; break;
case Color.Curse:
intcolor = NodeColor.Curse; break;
case Color.Lava:
intcolor = NodeColor.Lava; break;
}
return intcolor;
}
@ -895,6 +898,7 @@ public static class Name
public const string Metal = "metal";
public const string Holy = "holy";
public const string Curse = "curse";
public const string Lava = "Lava";
public static readonly List<string> AllColor = new() { Red, Green, Blue, Yellow ,White, Black , Metal, Holy, Curse };
public static readonly List<string> PlayerColor = new() { Red, Blue, Yellow};
@ -1020,9 +1024,14 @@ public static class Name
public const string Believer = "Believer";
public const string Cultist = "Cultist";
public const string Bomb = "Bomb";
public static readonly List<string> AllItem= new() { Cultist, Volcano, AcidRain , Wind , Believer, Bomb };
public const string Spruce = "Spruce";
public const string Cactus = "Cactus";
public const string Manjusaka = "Manjusaka";
public static readonly List<string> AllItem= new() { Cultist, Volcano, AcidRain , Wind , Believer, Bomb, Manjusaka, Cactus, Spruce };
}
public static class WeaponNode
{
public const string PrefabPath = "WeaponNodePrefab/";

8
ColorlessWorld-2024-4-2/Assets/Scripts/Weapon/Weapon.cs

@ -47,6 +47,14 @@ public class Weapon : MonoBehaviour
}
score += DomainManager.Instance.domainScore;
foreach(MapUnity node in BlockItemManager.Instance.nodeWithItemList)
{
if (node.blockNode != null)
{
node.blockNode.SettleScore();
score += node.blockNode.provideScore;
}
}
AttackScorManager.Instance.playerScore = score ;
MapUnityManager.Instance.extraRedNodeCount= extraRedNodeCount;
MapUnityManager.Instance.extraBlueNodeCount = extraBlueNodeCount;

22
ColorlessWorld-2024-4-2/Assets/Scripts/manager/CardManager.cs

@ -637,11 +637,27 @@ public class CardManager : Singleton<CardManager>
}
break;
case Name.NodeItem.Bomb:
GameObject bombCultist = Resources.Load<GameObject>(itemPrefabPath + itemName);
HashSet<MapUnity> targetNodesC = bombCultist.GetComponent<ItemTakerOverNode>().TakeOverCalculation(mapUnity);
GameObject itemBomb = Resources.Load<GameObject>(itemPrefabPath + itemName);
HashSet<MapUnity> targetNodesC = itemBomb.GetComponent<ItemTakerOverNode>().TakeOverCalculation(mapUnity);
if (targetNodesC != null)
{
bombCultist.GetComponent<ItemTakerOverNode>().GenerateBlockItem(mapUnity, bombCultist);
itemBomb.GetComponent<ItemTakerOverNode>().GenerateBlockItem(mapUnity, itemBomb);
}
break;
case Name.NodeItem.Spruce:
GameObject itemSpruce = Resources.Load<GameObject>(itemPrefabPath + itemName);
HashSet<MapUnity> targetNodesD = itemSpruce.GetComponent<ItemTakerOverNode>().TakeOverCalculation(mapUnity);
if (targetNodesD != null)
{
itemSpruce.GetComponent<ItemTakerOverNode>().GenerateBlockItem(mapUnity, itemSpruce);
}
break;
case Name.NodeItem.Cactus:
GameObject itemCactus = Resources.Load<GameObject>(itemPrefabPath + itemName);
HashSet<MapUnity> targetNodesE = itemCactus.GetComponent<ItemTakerOverNode>().TakeOverCalculation(mapUnity);
if (targetNodesE != null)
{
itemCactus.GetComponent<ItemTakerOverNode>().GenerateBlockItem(mapUnity, itemCactus);
}
break;
case Name.NodeItem.AcidRain:

Loading…
Cancel
Save