Implemented health bar and diamond count in the new gui
This commit is contained in:
parent
105055b307
commit
c42406e615
14 changed files with 668 additions and 505 deletions
|
|
@ -215,142 +215,6 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 04241db9fdb62a147acac6895a47db06, type: 3}
|
m_Script: {fileID: 11500000, guid: 04241db9fdb62a147acac6895a47db06, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &60872503
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 60872504}
|
|
||||||
- component: {fileID: 60872506}
|
|
||||||
- component: {fileID: 60872505}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Diamonds
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &60872504
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 60872503}
|
|
||||||
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: 1353551474}
|
|
||||||
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: 160.8, y: -237}
|
|
||||||
m_SizeDelta: {x: 200, y: 50}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!114 &60872505
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 60872503}
|
|
||||||
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: 1
|
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_Maskable: 1
|
|
||||||
m_OnCullStateChanged:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
m_text: New Text
|
|
||||||
m_isRightToLeft: 0
|
|
||||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
|
||||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
|
||||||
m_fontSharedMaterials: []
|
|
||||||
m_fontMaterial: {fileID: 0}
|
|
||||||
m_fontMaterials: []
|
|
||||||
m_fontColor32:
|
|
||||||
serializedVersion: 2
|
|
||||||
rgba: 4294835968
|
|
||||||
m_fontColor: {r: 0, g: 1, b: 0.99077415, 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: 36
|
|
||||||
m_fontSizeBase: 36
|
|
||||||
m_fontWeight: 400
|
|
||||||
m_enableAutoSizing: 0
|
|
||||||
m_fontSizeMin: 18
|
|
||||||
m_fontSizeMax: 72
|
|
||||||
m_fontStyle: 0
|
|
||||||
m_HorizontalAlignment: 4
|
|
||||||
m_VerticalAlignment: 512
|
|
||||||
m_textAlignment: 65535
|
|
||||||
m_characterSpacing: 0
|
|
||||||
m_wordSpacing: 0
|
|
||||||
m_lineSpacing: 0
|
|
||||||
m_lineSpacingMax: 0
|
|
||||||
m_paragraphSpacing: 0
|
|
||||||
m_charWidthMaxAdj: 0
|
|
||||||
m_TextWrappingMode: 1
|
|
||||||
m_wordWrappingRatios: 0.4
|
|
||||||
m_overflowMode: 0
|
|
||||||
m_linkedTextComponent: {fileID: 0}
|
|
||||||
parentLinkedComponent: {fileID: 0}
|
|
||||||
m_enableKerning: 0
|
|
||||||
m_ActiveFontFeatures: 6e72656b
|
|
||||||
m_enableExtraPadding: 0
|
|
||||||
checkPaddingRequired: 0
|
|
||||||
m_isRichText: 1
|
|
||||||
m_EmojiFallbackSupport: 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!222 &60872506
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 60872503}
|
|
||||||
m_CullTransparentMesh: 1
|
|
||||||
--- !u!1 &323570087
|
--- !u!1 &323570087
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -380,7 +244,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: a277ce4246f154447a52f88a6c9937e0, type: 3}
|
m_Script: {fileID: 11500000, guid: a277ce4246f154447a52f88a6c9937e0, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
canvas: {fileID: 1353551473}
|
canvas: {fileID: 0}
|
||||||
hudController: {fileID: 337186334}
|
hudController: {fileID: 337186334}
|
||||||
chestPopUpControllerGO: {fileID: 1772543306}
|
chestPopUpControllerGO: {fileID: 1772543306}
|
||||||
chestPopUpController: {fileID: 1772543309}
|
chestPopUpController: {fileID: 1772543309}
|
||||||
|
|
@ -391,6 +255,7 @@ MonoBehaviour:
|
||||||
blackDieAbility: {fileID: 37414492}
|
blackDieAbility: {fileID: 37414492}
|
||||||
chestRewardSelection: {fileID: 1772543310}
|
chestRewardSelection: {fileID: 1772543310}
|
||||||
torchAbility: {fileID: 1015377333}
|
torchAbility: {fileID: 1015377333}
|
||||||
|
player: {fileID: 386902759}
|
||||||
--- !u!4 &323570089
|
--- !u!4 &323570089
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -678,8 +543,6 @@ MonoBehaviour:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
maxHealth: 20
|
maxHealth: 20
|
||||||
diamonds: 0
|
diamonds: 0
|
||||||
healthGO: {fileID: 1728296560}
|
|
||||||
diamondsGO: {fileID: 60872503}
|
|
||||||
rooms: {fileID: 0}
|
rooms: {fileID: 0}
|
||||||
--- !u!114 &386902760
|
--- !u!114 &386902760
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
|
|
@ -2106,110 +1969,6 @@ RectTransform:
|
||||||
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
|
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
|
||||||
m_PrefabInstance: {fileID: 1333995205}
|
m_PrefabInstance: {fileID: 1333995205}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &1353551473
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1353551474}
|
|
||||||
- component: {fileID: 1353551477}
|
|
||||||
- component: {fileID: 1353551476}
|
|
||||||
- component: {fileID: 1353551475}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Canvas
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 0
|
|
||||||
--- !u!224 &1353551474
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1353551473}
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 60872504}
|
|
||||||
- {fileID: 1728296563}
|
|
||||||
- {fileID: 1804910034}
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
|
||||||
m_Pivot: {x: 0, y: 0}
|
|
||||||
--- !u!114 &1353551475
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1353551473}
|
|
||||||
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!114 &1353551476
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1353551473}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_UiScaleMode: 0
|
|
||||||
m_ReferencePixelsPerUnit: 100
|
|
||||||
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: 0
|
|
||||||
--- !u!223 &1353551477
|
|
||||||
Canvas:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1353551473}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_RenderMode: 0
|
|
||||||
m_Camera: {fileID: 0}
|
|
||||||
m_PlaneDistance: 100
|
|
||||||
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: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_TargetDisplay: 0
|
|
||||||
--- !u!1 &1417835870
|
--- !u!1 &1417835870
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -2361,142 +2120,6 @@ RectTransform:
|
||||||
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
|
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
|
||||||
m_PrefabInstance: {fileID: 1577335134}
|
m_PrefabInstance: {fileID: 1577335134}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1 &1728296560
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1728296563}
|
|
||||||
- component: {fileID: 1728296562}
|
|
||||||
- component: {fileID: 1728296561}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Health
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &1728296561
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1728296560}
|
|
||||||
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: 1
|
|
||||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_Maskable: 1
|
|
||||||
m_OnCullStateChanged:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
m_text: New Text
|
|
||||||
m_isRightToLeft: 0
|
|
||||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
|
||||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
|
||||||
m_fontSharedMaterials: []
|
|
||||||
m_fontMaterial: {fileID: 0}
|
|
||||||
m_fontMaterials: []
|
|
||||||
m_fontColor32:
|
|
||||||
serializedVersion: 2
|
|
||||||
rgba: 4278255434
|
|
||||||
m_fontColor: {r: 0.29063714, g: 1, b: 0, 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: 36
|
|
||||||
m_fontSizeBase: 36
|
|
||||||
m_fontWeight: 400
|
|
||||||
m_enableAutoSizing: 0
|
|
||||||
m_fontSizeMin: 18
|
|
||||||
m_fontSizeMax: 72
|
|
||||||
m_fontStyle: 0
|
|
||||||
m_HorizontalAlignment: 4
|
|
||||||
m_VerticalAlignment: 512
|
|
||||||
m_textAlignment: 65535
|
|
||||||
m_characterSpacing: 0
|
|
||||||
m_wordSpacing: 0
|
|
||||||
m_lineSpacing: 0
|
|
||||||
m_lineSpacingMax: 0
|
|
||||||
m_paragraphSpacing: 0
|
|
||||||
m_charWidthMaxAdj: 0
|
|
||||||
m_TextWrappingMode: 1
|
|
||||||
m_wordWrappingRatios: 0.4
|
|
||||||
m_overflowMode: 0
|
|
||||||
m_linkedTextComponent: {fileID: 0}
|
|
||||||
parentLinkedComponent: {fileID: 0}
|
|
||||||
m_enableKerning: 0
|
|
||||||
m_ActiveFontFeatures: 6e72656b
|
|
||||||
m_enableExtraPadding: 0
|
|
||||||
checkPaddingRequired: 0
|
|
||||||
m_isRichText: 1
|
|
||||||
m_EmojiFallbackSupport: 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!222 &1728296562
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1728296560}
|
|
||||||
m_CullTransparentMesh: 1
|
|
||||||
--- !u!224 &1728296563
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1728296560}
|
|
||||||
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: 1353551474}
|
|
||||||
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: 222, y: 230}
|
|
||||||
m_SizeDelta: {x: 150.14, y: 50}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!1 &1772543306
|
--- !u!1 &1772543306
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -2677,112 +2300,6 @@ RectTransform:
|
||||||
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
|
m_CorrespondingSourceObject: {fileID: 8989188457857827130, guid: 66fcddbe7a3c341c5b9ca4f8801259a6, type: 3}
|
||||||
m_PrefabInstance: {fileID: 1775902214}
|
m_PrefabInstance: {fileID: 1775902214}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &1804910033
|
|
||||||
PrefabInstance:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Modification:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransformParent: {fileID: 1353551474}
|
|
||||||
m_Modifications:
|
|
||||||
- target: {fileID: 6007503688929917977, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_Name
|
|
||||||
value: ChestPopUp
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 6007503688929917977, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_IsActive
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_Pivot.x
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_Pivot.y
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_AnchorMax.x
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_AnchorMax.y
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_AnchorMin.x
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_AnchorMin.y
|
|
||||||
value: 0.5
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_SizeDelta.x
|
|
||||||
value: 293.24768
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_SizeDelta.y
|
|
||||||
value: 164.10168
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalPosition.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalPosition.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalPosition.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: -0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: -0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: -0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_AnchoredPosition.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_AnchoredPosition.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
|
||||||
m_RemovedGameObjects: []
|
|
||||||
m_AddedGameObjects: []
|
|
||||||
m_AddedComponents: []
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
--- !u!224 &1804910034 stripped
|
|
||||||
RectTransform:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 7983622854988183681, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 1804910033}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1001 &1948928674
|
--- !u!1001 &1948928674
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -3333,7 +2850,6 @@ SceneRoots:
|
||||||
- {fileID: 323570089}
|
- {fileID: 323570089}
|
||||||
- {fileID: 386902761}
|
- {fileID: 386902761}
|
||||||
- {fileID: 896056464}
|
- {fileID: 896056464}
|
||||||
- {fileID: 1353551474}
|
|
||||||
- {fileID: 1417835872}
|
- {fileID: 1417835872}
|
||||||
- {fileID: 337186333}
|
- {fileID: 337186333}
|
||||||
- {fileID: 1772543308}
|
- {fileID: 1772543308}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@ MonoBehaviour:
|
||||||
instantiationMode: 1
|
instantiationMode: 1
|
||||||
- dependency: {fileID: -4733365628477956816, guid: 99ca6393897edf24799dbcc0df57e904, type: 3}
|
- dependency: {fileID: -4733365628477956816, guid: 99ca6393897edf24799dbcc0df57e904, type: 3}
|
||||||
instantiationMode: 1
|
instantiationMode: 1
|
||||||
|
- dependency: {fileID: 2800000, guid: 12c75eb8a2e326b4e9c47b9f7cb06a2c, type: 3}
|
||||||
|
instantiationMode: 0
|
||||||
- dependency: {fileID: 2800000, guid: 3028dc075ba8c584d9bc7d1e0255e038, type: 3}
|
- dependency: {fileID: 2800000, guid: 3028dc075ba8c584d9bc7d1e0255e038, type: 3}
|
||||||
instantiationMode: 1
|
instantiationMode: 1
|
||||||
- dependency: {fileID: 7433441132597879392, guid: 6b393637cabb3ce42bcdb2396af15f70, type: 3}
|
- dependency: {fileID: 7433441132597879392, guid: 6b393637cabb3ce42bcdb2396af15f70, type: 3}
|
||||||
|
|
@ -38,8 +40,8 @@ MonoBehaviour:
|
||||||
instantiationMode: 1
|
instantiationMode: 1
|
||||||
- dependency: {fileID: 2800000, guid: b9a93e3830914ec4bb885cca1ec68d3f, type: 3}
|
- dependency: {fileID: 2800000, guid: b9a93e3830914ec4bb885cca1ec68d3f, type: 3}
|
||||||
instantiationMode: 0
|
instantiationMode: 0
|
||||||
- dependency: {fileID: 6007503688929917977, guid: 2d3967bed0790c44c88fabab60350749, type: 3}
|
- dependency: {fileID: 2800000, guid: 251a73d312e38e24d970c06b9ea50c5f, type: 3}
|
||||||
instantiationMode: 1
|
instantiationMode: 0
|
||||||
- dependency: {fileID: 7874367151511621086, guid: de405f9dca058480ab9e8433965408b2, type: 3}
|
- dependency: {fileID: 7874367151511621086, guid: de405f9dca058480ab9e8433965408b2, type: 3}
|
||||||
instantiationMode: 1
|
instantiationMode: 1
|
||||||
- dependency: {fileID: 2800000, guid: ca55846e26dc89e45b6e0afa16f84977, type: 3}
|
- dependency: {fileID: 2800000, guid: ca55846e26dc89e45b6e0afa16f84977, type: 3}
|
||||||
|
|
@ -58,6 +60,8 @@ MonoBehaviour:
|
||||||
instantiationMode: 0
|
instantiationMode: 0
|
||||||
- dependency: {fileID: 2800000, guid: a3052a5a54720ef4d98f96950d425fe8, type: 3}
|
- dependency: {fileID: 2800000, guid: a3052a5a54720ef4d98f96950d425fe8, type: 3}
|
||||||
instantiationMode: 0
|
instantiationMode: 0
|
||||||
|
- dependency: {fileID: 7433441132597879392, guid: be54492010453064cb419a92c1c53a8d, type: 3}
|
||||||
|
instantiationMode: 1
|
||||||
- dependency: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
- dependency: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
||||||
instantiationMode: 1
|
instantiationMode: 1
|
||||||
- dependency: {fileID: 9197481963319205126, guid: 17df250617a702f4e897f28d1f9182df, type: 3}
|
- dependency: {fileID: 9197481963319205126, guid: 17df250617a702f4e897f28d1f9182df, type: 3}
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,11 @@ using UnityEngine.Serialization;
|
||||||
|
|
||||||
public class Player : MonoBehaviour
|
public class Player : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public event Action<int> DiamondCountUpdated;
|
||||||
|
public event Action<int> HealthUpdated;
|
||||||
|
|
||||||
[SerializeField] private int maxHealth;
|
[SerializeField] private int maxHealth;
|
||||||
[SerializeField] private int diamonds;
|
[SerializeField] private int diamonds;
|
||||||
[FormerlySerializedAs("healthGameObject")] [SerializeField] private GameObject healthGO;
|
|
||||||
[FormerlySerializedAs("DiamondsGO")] [SerializeField] private GameObject diamondsGO;
|
|
||||||
[SerializeField] private GameObject rooms;
|
[SerializeField] private GameObject rooms;
|
||||||
private int _healthIndex = 0;
|
private int _healthIndex = 0;
|
||||||
private readonly int[] _healthBar = {0, 0, -1, -2, -4, -6, -9, -12, -16, -20};
|
private readonly int[] _healthBar = {0, 0, -1, -2, -4, -6, -9, -12, -16, -20};
|
||||||
|
|
@ -56,8 +57,8 @@ public class Player : MonoBehaviour
|
||||||
|
|
||||||
private void UpdateGUI()
|
private void UpdateGUI()
|
||||||
{
|
{
|
||||||
healthGO.GetComponent<TextMeshProUGUI>().text = _healthBar[_healthIndex].ToString();
|
DiamondCountUpdated?.Invoke(diamonds);
|
||||||
diamondsGO.GetComponent<TextMeshProUGUI>().text = diamonds.ToString();
|
HealthUpdated?.Invoke(_healthIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleDiamondAndLifeAbilitySelected()
|
private void HandleDiamondAndLifeAbilitySelected()
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UIElements;
|
using UnityEngine.UIElements;
|
||||||
|
|
||||||
|
|
@ -47,6 +48,10 @@ namespace UI
|
||||||
private List<Toggle> _armorUses = new List<Toggle>();
|
private List<Toggle> _armorUses = new List<Toggle>();
|
||||||
private int _armorUsesUsed = 0;
|
private int _armorUsesUsed = 0;
|
||||||
|
|
||||||
|
private List<VisualElement> _healthAreas;
|
||||||
|
|
||||||
|
private Label diamondCount;
|
||||||
|
|
||||||
|
|
||||||
public void OnEnable()
|
public void OnEnable()
|
||||||
{
|
{
|
||||||
|
|
@ -58,6 +63,9 @@ namespace UI
|
||||||
GroupBox startingBlackDieGroupBox = root.Q<GroupBox>("StartingBlackDieUses");
|
GroupBox startingBlackDieGroupBox = root.Q<GroupBox>("StartingBlackDieUses");
|
||||||
startingBlackDieGroupBox.AddManipulator(new Clickable(evt => HandleStartingBlackDieAbilityClicked()));
|
startingBlackDieGroupBox.AddManipulator(new Clickable(evt => HandleStartingBlackDieAbilityClicked()));
|
||||||
GroupBox diceGroupBox = root.Q<GroupBox>("Dice");
|
GroupBox diceGroupBox = root.Q<GroupBox>("Dice");
|
||||||
|
VisualElement healthArea = root.Q<VisualElement>("HealthArea");
|
||||||
|
_healthAreas = healthArea.Children().ToList();
|
||||||
|
diamondCount = root.Q<Label>("DiamondCount");
|
||||||
|
|
||||||
foreach (Button diceButton in diceGroupBox.Children())
|
foreach (Button diceButton in diceGroupBox.Children())
|
||||||
{
|
{
|
||||||
|
|
@ -114,6 +122,26 @@ namespace UI
|
||||||
_rollOrPassButton.clicked += HandleRollOrPassClicked;
|
_rollOrPassButton.clicked += HandleRollOrPassClicked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetDiamondCount(int count)
|
||||||
|
{
|
||||||
|
diamondCount.text = count.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetHealth(int healthIndex)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < _healthAreas.Count; i++)
|
||||||
|
{
|
||||||
|
if (i == healthIndex)
|
||||||
|
{
|
||||||
|
_healthAreas[i].SetEnabled(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_healthAreas[i].SetEnabled(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void SetBlackDieAbilityEnabled()
|
public void SetBlackDieAbilityEnabled()
|
||||||
{
|
{
|
||||||
foreach (Toggle use in _blackDieAbilityUses)
|
foreach (Toggle use in _blackDieAbilityUses)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ namespace UI
|
||||||
[SerializeField] private BlackDieAbility blackDieAbility;
|
[SerializeField] private BlackDieAbility blackDieAbility;
|
||||||
[SerializeField] private ChestRewardSelection chestRewardSelection;
|
[SerializeField] private ChestRewardSelection chestRewardSelection;
|
||||||
[SerializeField] private TorchAbility torchAbility;
|
[SerializeField] private TorchAbility torchAbility;
|
||||||
|
[SerializeField] private Player player;
|
||||||
|
|
||||||
public static UIManager Instance { get; private set; }
|
public static UIManager Instance { get; private set; }
|
||||||
|
|
||||||
|
|
@ -69,6 +70,9 @@ namespace UI
|
||||||
torchAbility.AbilityGained += hudController.SetKeyAbilityEnabled;
|
torchAbility.AbilityGained += hudController.SetKeyAbilityEnabled;
|
||||||
TorchAbility.TorchAbilityUsed += hudController.MarkKeyAbilityUsed;
|
TorchAbility.TorchAbilityUsed += hudController.MarkKeyAbilityUsed;
|
||||||
hudController.KeyAbilityClicked += torchAbility.UseClicked;
|
hudController.KeyAbilityClicked += torchAbility.UseClicked;
|
||||||
|
|
||||||
|
player.DiamondCountUpdated += hudController.SetDiamondCount;
|
||||||
|
player.HealthUpdated += hudController.SetHealth;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDisable()
|
private void OnDisable()
|
||||||
|
|
|
||||||
BIN
PuzzleGameProject/Assets/Sprites/Skull (1x1).png
Normal file
BIN
PuzzleGameProject/Assets/Sprites/Skull (1x1).png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
169
PuzzleGameProject/Assets/Sprites/Skull (1x1).png.meta
Normal file
169
PuzzleGameProject/Assets/Sprites/Skull (1x1).png.meta
Normal file
|
|
@ -0,0 +1,169 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bc986da92ebe112449faf53ca382048a
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable:
|
||||||
|
- first:
|
||||||
|
213: 5098196514985065646
|
||||||
|
second: Skull (1x1)_0
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 2
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites:
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: Skull (1x1)_0
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 89
|
||||||
|
y: 76
|
||||||
|
width: 142
|
||||||
|
height: 140
|
||||||
|
alignment: 0
|
||||||
|
pivot: {x: 0.5, y: 0.5}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
customData:
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: -1
|
||||||
|
bones: []
|
||||||
|
spriteID: eacb1de08be60c640800000000000000
|
||||||
|
internalID: 5098196514985065646
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: e52f53bd0543bf148a3b38cb50791853
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable:
|
||||||
|
Skull (1x1)_0: 5098196514985065646
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
PuzzleGameProject/Assets/Sprites/Skull Cropped.png
Normal file
BIN
PuzzleGameProject/Assets/Sprites/Skull Cropped.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
169
PuzzleGameProject/Assets/Sprites/Skull Cropped.png.meta
Normal file
169
PuzzleGameProject/Assets/Sprites/Skull Cropped.png.meta
Normal file
|
|
@ -0,0 +1,169 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 251a73d312e38e24d970c06b9ea50c5f
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable:
|
||||||
|
- first:
|
||||||
|
213: -3073354143626908951
|
||||||
|
second: Skull Cropped_0
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites:
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: Skull Cropped_0
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 127
|
||||||
|
height: 134
|
||||||
|
alignment: 0
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
customData:
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: -1
|
||||||
|
bones: []
|
||||||
|
spriteID: 9eaa42090b04955d0800000000000000
|
||||||
|
internalID: -3073354143626908951
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable:
|
||||||
|
Skull Cropped_0: -3073354143626908951
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
PuzzleGameProject/Assets/Sprites/Skull, giant (2x2).png
Normal file
BIN
PuzzleGameProject/Assets/Sprites/Skull, giant (2x2).png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
169
PuzzleGameProject/Assets/Sprites/Skull, giant (2x2).png.meta
Normal file
169
PuzzleGameProject/Assets/Sprites/Skull, giant (2x2).png.meta
Normal file
|
|
@ -0,0 +1,169 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ab77e27f778be114ba7e7fedb7f90912
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable:
|
||||||
|
- first:
|
||||||
|
213: 4526226839407376472
|
||||||
|
second: Skull, giant (2x2)_0
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites:
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: Skull, giant (2x2)_0
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 109
|
||||||
|
y: 100
|
||||||
|
width: 400
|
||||||
|
height: 406
|
||||||
|
alignment: 0
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
customData:
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: -1
|
||||||
|
bones: []
|
||||||
|
spriteID: 85837b7545360de30800000000000000
|
||||||
|
internalID: 4526226839407376472
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable:
|
||||||
|
Skull, giant (2x2)_0: 4526226839407376472
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -2,10 +2,44 @@
|
||||||
<Style src="project://database/Assets/UI/Styles/style1.uss?fileID=7433441132597879392&guid=97546bb1d1d93d84e9b4ef0c8ae11a0e&type=3#style1" />
|
<Style src="project://database/Assets/UI/Styles/style1.uss?fileID=7433441132597879392&guid=97546bb1d1d93d84e9b4ef0c8ae11a0e&type=3#style1" />
|
||||||
<Style src="project://database/Assets/UI/Styles/Abilities.uss?fileID=7433441132597879392&guid=6b393637cabb3ce42bcdb2396af15f70&type=3#Abilities" />
|
<Style src="project://database/Assets/UI/Styles/Abilities.uss?fileID=7433441132597879392&guid=6b393637cabb3ce42bcdb2396af15f70&type=3#Abilities" />
|
||||||
<Style src="project://database/Assets/Dice.uss?fileID=7433441132597879392&guid=a485f2375ba46a046bbd6fd661492785&type=3#Dice" />
|
<Style src="project://database/Assets/Dice.uss?fileID=7433441132597879392&guid=a485f2375ba46a046bbd6fd661492785&type=3#Dice" />
|
||||||
|
<Style src="project://database/Assets/UI/Styles/HealthBar.uss?fileID=7433441132597879392&guid=be54492010453064cb419a92c1c53a8d&type=3#HealthBar" />
|
||||||
<engine:VisualElement name="VisualElement" style="flex-grow: 1; right: auto; justify-content: space-between; align-items: flex-end; flex-direction: flex-start; align-self: stretch; flex-basis: initial; width: initial; flex-shrink: 0;">
|
<engine:VisualElement name="VisualElement" style="flex-grow: 1; right: auto; justify-content: space-between; align-items: flex-end; flex-direction: flex-start; align-self: stretch; flex-basis: initial; width: initial; flex-shrink: 0;">
|
||||||
<engine:VisualElement name="Right" style="flex-grow: 1; align-self: flex-end; max-width: none; justify-content: flex-end; flex-direction: row; right: auto; position: relative; align-items: auto; width: 20%;">
|
<engine:VisualElement name="Right" style="flex-grow: 1; align-self: flex-end; max-width: none; justify-content: flex-end; flex-direction: row; right: auto; position: relative; align-items: auto; width: 20%;">
|
||||||
<engine:VisualElement name="Ribbon" style="flex-grow: 0; flex-shrink: 1; width: auto; align-self: flex-start; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-basis: auto; flex-wrap: nowrap; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px;">
|
<engine:VisualElement name="HealthArea" class="border margin" style="flex-grow: 0; width: auto; height: auto; align-self: flex-start; align-items: stretch; background-color: rgb(192, 162, 112);">
|
||||||
<engine:VisualElement name="Chest" style="flex-grow: 0; flex-shrink: 1; background-color: rgb(255, 200, 71); justify-content: flex-start; align-items: stretch;">
|
<engine:VisualElement name="Area1" enabled="true" class="area inactive" style="background-color: rgb(21, 173, 0); flex-direction: column;">
|
||||||
|
<engine:Label text="0" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area2" class="area" style="background-color: rgb(37, 197, 5);">
|
||||||
|
<engine:Label text="0" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area3" class="area" style="background-color: rgb(148, 243, 0);">
|
||||||
|
<engine:Label text="-1" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area4" class="area" style="background-color: rgb(243, 238, 0);">
|
||||||
|
<engine:Label text="-2" tabindex="0" name="Label" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area5" class="area" style="background-color: rgb(243, 192, 0);">
|
||||||
|
<engine:Label text="-4" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area6" class="area" style="background-color: rgb(243, 157, 0);">
|
||||||
|
<engine:Label text="-6" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area7" class="area" style="background-color: rgb(243, 97, 0);">
|
||||||
|
<engine:Label text="-9" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area8" class="area" style="background-color: rgb(243, 44, 0);">
|
||||||
|
<engine:Label text="-12" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area9" class="area" style="background-color: rgb(204, 14, 0);">
|
||||||
|
<engine:Label text="-16" class="text" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Area10" style="flex-grow: 0; flex-shrink: 1; background-color: rgb(115, 8, 0); align-items: center; justify-content: center; margin-top: 2px; margin-right: 2px; margin-bottom: 2px; margin-left: 2px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px;">
|
||||||
|
<engine:Label text="-20" class="text" />
|
||||||
|
<engine:VisualElement name="Skull" style="width: 40px; height: 40px; flex-shrink: 0; background-image: url("project://database/Assets/Sprites/Skull%20Cropped.png?fileID=2800000&guid=251a73d312e38e24d970c06b9ea50c5f&type=3#Skull Cropped"); -unity-background-scale-mode: stretch-to-fill; background-repeat: no-repeat no-repeat;" />
|
||||||
|
</engine:VisualElement>
|
||||||
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="Ribbon" class="margin" style="flex-grow: 0; flex-shrink: 1; width: auto; align-self: flex-start; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-basis: auto; flex-wrap: nowrap; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-top-width: 3px; border-right-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; border-bottom-left-radius: 6px;">
|
||||||
|
<engine:VisualElement name="Chest" style="flex-grow: 0; flex-shrink: 1; background-color: rgb(255, 200, 71); justify-content: flex-start; align-items: stretch; border-left-width: 3px;">
|
||||||
<engine:VisualElement name="HeartAndDiamond" style="flex-grow: 1; align-items: stretch; flex-shrink: 1; justify-content: space-between; border-bottom-width: 2px; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0);">
|
<engine:VisualElement name="HeartAndDiamond" style="flex-grow: 1; align-items: stretch; flex-shrink: 1; justify-content: space-between; border-bottom-width: 2px; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0);">
|
||||||
<engine:VisualElement style="flex-grow: 0; flex-direction: row; flex-shrink: 1; justify-content: space-around;">
|
<engine:VisualElement style="flex-grow: 0; flex-direction: row; flex-shrink: 1; justify-content: space-around;">
|
||||||
<engine:VisualElement name="ArmorAndShield" enabled="true" style="flex-grow: 0; background-image: url("project://database/Assets/Sprites/HeartAndDiamond.png?fileID=2800000&guid=a3052a5a54720ef4d98f96950d425fe8&type=3#HeartAndDiamond"); align-items: center; width: 100px; height: 100px; flex-shrink: 0; align-self: center;" />
|
<engine:VisualElement name="ArmorAndShield" enabled="true" style="flex-grow: 0; background-image: url("project://database/Assets/Sprites/HeartAndDiamond.png?fileID=2800000&guid=a3052a5a54720ef4d98f96950d425fe8&type=3#HeartAndDiamond"); align-items: center; width: 100px; height: 100px; flex-shrink: 0; align-self: center;" />
|
||||||
|
|
@ -50,17 +84,23 @@
|
||||||
</engine:VisualElement>
|
</engine:VisualElement>
|
||||||
</engine:VisualElement>
|
</engine:VisualElement>
|
||||||
</engine:VisualElement>
|
</engine:VisualElement>
|
||||||
<engine:VisualElement name="Bottom" style="flex-grow: 1; flex-direction: row-reverse; flex-shrink: 1; height: 20%; max-width: 100%; justify-content: space-around; align-items: stretch; align-self: stretch;">
|
<engine:VisualElement name="Bottom" style="flex-grow: 1; flex-direction: row; flex-shrink: 1; height: 20%; max-width: 100%; justify-content: flex-start; align-items: flex-end; align-self: stretch;">
|
||||||
<engine:VisualElement name="DiceRoller" style="flex-grow: 0; align-self: flex-end; flex-direction: row-reverse;">
|
<engine:VisualElement name="DiamondCountBox" class="border margin" style="flex-grow: 0; width: 106px; height: 50px; background-color: rgb(188, 188, 188); align-self: flex-end; flex-direction: row; justify-content: space-between;">
|
||||||
<engine:Button text="Roll" name="RollPass" class="button" style="align-self: center; border-top-left-radius: 7px; border-top-right-radius: 7px; border-bottom-right-radius: 7px; border-bottom-left-radius: 7px; height: 50px;" />
|
<engine:VisualElement name="Diamond" style="flex-grow: 0; background-image: url("project://database/Assets/Sprites/Loot/Crystal%20(1x1)%201.png?fileID=2800000&guid=12c75eb8a2e326b4e9c47b9f7cb06a2c&type=3#Crystal (1x1) 1"); height: 50px; width: 50px; flex-shrink: 0; align-self: center;" />
|
||||||
<engine:GroupBox name="Dice" style="flex-direction: row;">
|
<engine:VisualElement style="flex-grow: 1; justify-content: center;">
|
||||||
<engine:Button text="1" name="BlackDie" class="die black" />
|
<engine:Label text="0" name="DiamondCount" style="-unity-text-align: middle-center; font-size: 38px;" />
|
||||||
<engine:Button text="1" enabled="true" class="die white used" />
|
</engine:VisualElement>
|
||||||
<engine:Button text="1" class="die white" />
|
|
||||||
<engine:Button text="1" class="die white" />
|
|
||||||
<engine:Button text="1" class="die white" />
|
|
||||||
</engine:GroupBox>
|
|
||||||
</engine:VisualElement>
|
</engine:VisualElement>
|
||||||
</engine:VisualElement>
|
</engine:VisualElement>
|
||||||
|
<engine:VisualElement name="DiceRoller" style="flex-grow: 0; align-self: flex-end; flex-direction: row-reverse; position: absolute; bottom: 0; left: 0; right: 0; justify-content: center;">
|
||||||
|
<engine:Button text="Roll" name="RollPass" class="button" style="align-self: center; border-top-left-radius: 7px; border-top-right-radius: 7px; border-bottom-right-radius: 7px; border-bottom-left-radius: 7px; height: 50px; margin-left: 11px; margin-bottom: 3px; width: 106px;" />
|
||||||
|
<engine:GroupBox name="Dice" style="flex-direction: row; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; padding-left: 0;">
|
||||||
|
<engine:Button text="1" name="BlackDie" class="die black margin" />
|
||||||
|
<engine:Button text="1" enabled="true" class="die white used margin" />
|
||||||
|
<engine:Button text="1" class="die white margin" />
|
||||||
|
<engine:Button text="1" class="die white margin" />
|
||||||
|
<engine:Button text="1" class="die white margin" />
|
||||||
|
</engine:GroupBox>
|
||||||
|
</engine:VisualElement>
|
||||||
</engine:VisualElement>
|
</engine:VisualElement>
|
||||||
</engine:UXML>
|
</engine:UXML>
|
||||||
|
|
|
||||||
52
PuzzleGameProject/Assets/UI/Styles/HealthBar.uss
Normal file
52
PuzzleGameProject/Assets/UI/Styles/HealthBar.uss
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
.area {
|
||||||
|
flex-shrink: 1;
|
||||||
|
align-content: center;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-around;
|
||||||
|
margin-top: 2px;
|
||||||
|
margin-right: 2px;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
margin-left: 2px;
|
||||||
|
padding-top: 3px;
|
||||||
|
padding-right: 3px;
|
||||||
|
padding-bottom: 3px;
|
||||||
|
padding-left: 3px;
|
||||||
|
border-top-left-radius: 2px;
|
||||||
|
border-top-right-radius: 2px;
|
||||||
|
border-bottom-right-radius: 2px;
|
||||||
|
border-bottom-left-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
font-size: 20px;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.border {
|
||||||
|
border-top-width: 2px;
|
||||||
|
border-right-width: 2px;
|
||||||
|
border-bottom-width: 2px;
|
||||||
|
border-left-width: 2px;
|
||||||
|
border-top-left-radius: 7px;
|
||||||
|
border-top-right-radius: 7px;
|
||||||
|
border-bottom-right-radius: 7px;
|
||||||
|
border-bottom-left-radius: 7px;
|
||||||
|
border-left-color: rgb(0, 0, 0);
|
||||||
|
border-right-color: rgb(0, 0, 0);
|
||||||
|
border-top-color: rgb(0, 0, 0);
|
||||||
|
border-bottom-color: rgb(0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.margin {
|
||||||
|
margin-top: 3px;
|
||||||
|
margin-right: 3px;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
11
PuzzleGameProject/Assets/UI/Styles/HealthBar.uss.meta
Normal file
11
PuzzleGameProject/Assets/UI/Styles/HealthBar.uss.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: be54492010453064cb419a92c1c53a8d
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
disableValidation: 0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue