Implemented How To Play Pop up on start
This commit is contained in:
parent
5fd3e5bc73
commit
c103ffb339
20 changed files with 558 additions and 24 deletions
|
|
@ -0,0 +1 @@
|
|||
{"TestSuite":"","Date":0,"Player":{"Development":false,"ScreenWidth":0,"ScreenHeight":0,"ScreenRefreshRate":0,"Fullscreen":false,"Vsync":0,"AntiAliasing":0,"Batchmode":false,"RenderThreadingMode":"MultiThreaded","GpuSkinning":false,"Platform":"","ColorSpace":"","AnisotropicFiltering":"","BlendWeights":"","GraphicsApi":"","ScriptingBackend":"IL2CPP","AndroidTargetSdkVersion":"AndroidApiLevelAuto","AndroidBuildSystem":"Gradle","BuildTarget":"WebGL","StereoRenderingPath":"MultiPass"},"Hardware":{"OperatingSystem":"","DeviceModel":"","DeviceName":"","ProcessorType":"","ProcessorCount":0,"GraphicsDeviceName":"","SystemMemorySizeMB":0},"Editor":{"Version":"6000.0.34f1","Branch":"6000.0/staging","Changeset":"5ab2d9ed9190","Date":1736176501},"Dependencies":["com.unity.collab-proxy@2.6.0","com.unity.feature.2d@2.0.1","com.unity.feature.mobile@1.0.0","com.unity.ide.rider@3.0.31","com.unity.ide.visualstudio@2.0.22","com.unity.inputsystem@1.11.2","com.unity.multiplayer.center@1.0.0","com.unity.render-pipelines.universal@17.0.3","com.unity.timeline@1.8.7","com.unity.ugui@2.0.0","com.unity.visualscripting@1.9.5","com.unity.modules.accessibility@1.0.0","com.unity.modules.ai@1.0.0","com.unity.modules.androidjni@1.0.0","com.unity.modules.animation@1.0.0","com.unity.modules.assetbundle@1.0.0","com.unity.modules.audio@1.0.0","com.unity.modules.cloth@1.0.0","com.unity.modules.director@1.0.0","com.unity.modules.imageconversion@1.0.0","com.unity.modules.imgui@1.0.0","com.unity.modules.jsonserialize@1.0.0","com.unity.modules.particlesystem@1.0.0","com.unity.modules.physics@1.0.0","com.unity.modules.physics2d@1.0.0","com.unity.modules.screencapture@1.0.0","com.unity.modules.terrain@1.0.0","com.unity.modules.terrainphysics@1.0.0","com.unity.modules.tilemap@1.0.0","com.unity.modules.ui@1.0.0","com.unity.modules.uielements@1.0.0","com.unity.modules.umbra@1.0.0","com.unity.modules.unityanalytics@1.0.0","com.unity.modules.unitywebrequest@1.0.0","com.unity.modules.unitywebrequestassetbundle@1.0.0","com.unity.modules.unitywebrequestaudio@1.0.0","com.unity.modules.unitywebrequesttexture@1.0.0","com.unity.modules.unitywebrequestwww@1.0.0","com.unity.modules.vehicles@1.0.0","com.unity.modules.video@1.0.0","com.unity.modules.vr@1.0.0","com.unity.modules.wind@1.0.0","com.unity.modules.xr@1.0.0","com.unity.modules.subsystems@1.0.0","com.unity.modules.hierarchycore@1.0.0","com.unity.render-pipelines.core@17.0.3","com.unity.shadergraph@17.0.3","com.unity.render-pipelines.universal-config@17.0.3","com.unity.test-framework@1.4.5","com.unity.ext.nunit@2.0.5","com.unity.mobile.android-logcat@1.4.4","com.unity.adaptiveperformance@5.1.0","com.unity.mobile.notifications@2.4.0","com.unity.2d.animation@10.1.4","com.unity.2d.pixel-perfect@5.0.3","com.unity.2d.psdimporter@9.0.3","com.unity.2d.sprite@1.0.0","com.unity.2d.spriteshape@10.0.7","com.unity.2d.tilemap@1.0.0","com.unity.2d.tilemap.extras@4.1.0","com.unity.2d.aseprite@1.1.7","com.unity.searcher@4.9.2","com.unity.burst@1.8.18","com.unity.mathematics@1.3.2","com.unity.collections@2.5.1","com.unity.rendering.light-transport@1.0.1","com.unity.profiling.core@1.0.2","com.unity.2d.common@9.0.7","com.unity.nuget.mono-cecil@1.11.4","com.unity.test-framework.performance@3.0.3"],"Results":[]}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fd2f131e858fd504b9dbc37e51f92acc
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"MeasurementCount":-1}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e4138449aacb29a4193c131477ff92cb
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -244,6 +244,70 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 1c6d26f9a8f2855469ad6ac0874795b1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &1131314918
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1131314920}
|
||||
- component: {fileID: 1131314919}
|
||||
- component: {fileID: 1131314921}
|
||||
m_Layer: 5
|
||||
m_Name: RulesPage
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1131314919
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1131314918}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 19102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_PanelSettings: {fileID: 11400000, guid: 79ea83e6353cc60439227b4505222385, type: 2}
|
||||
m_ParentUI: {fileID: 0}
|
||||
sourceAsset: {fileID: 9197481963319205126, guid: 9dbb5ec480f334846b45e80a82cefb64, type: 3}
|
||||
m_SortingOrder: 0
|
||||
m_WorldSpaceSizeMode: 1
|
||||
m_WorldSpaceWidth: 1920
|
||||
m_WorldSpaceHeight: 1080
|
||||
--- !u!4 &1131314920
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1131314918}
|
||||
serializedVersion: 2
|
||||
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: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1131314921
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1131314918}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 2a5aa3e2c35674149847602fe21313a4, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &1250110425
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -336,6 +400,51 @@ Transform:
|
|||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1963856832
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1963856834}
|
||||
- component: {fileID: 1963856833}
|
||||
m_Layer: 0
|
||||
m_Name: UIManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1963856833
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1963856832}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9ccfd39425234a2a9c67229f57a62b10, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
rulesPageGO: {fileID: 1131314918}
|
||||
--- !u!4 &1963856834
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1963856832}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.773548, y: 1.0709885, z: -0.04651529}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -343,3 +452,5 @@ SceneRoots:
|
|||
- {fileID: 1250110428}
|
||||
- {fileID: 830877627}
|
||||
- {fileID: 455091938}
|
||||
- {fileID: 1131314920}
|
||||
- {fileID: 1963856834}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,7 @@ namespace DungeonSelection
|
|||
public static Action NextDungeonClicked;
|
||||
public static Action PreviousDungeonClicked;
|
||||
public static Action<DungeonData> EnterDungeonClicked;
|
||||
public static Action CloseRules;
|
||||
public static Action ShowRules;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DungeonSelection
|
||||
{
|
||||
public class UIManager : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject rulesPageGO;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
UIEvents.ShowRules += ShowRules;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
UIEvents.ShowRules -= ShowRules;
|
||||
|
||||
}
|
||||
|
||||
private void ShowRules()
|
||||
{
|
||||
rulesPageGO.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9ccfd39425234a2a9c67229f57a62b10
|
||||
timeCreated: 1741259289
|
||||
|
|
@ -20,6 +20,8 @@ public class DungeonSelectMenuController : MonoBehaviour
|
|||
{
|
||||
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
|
||||
|
||||
Button rules = root.Q<Button>("Rules");
|
||||
rules.clicked += UIEvents.ShowRules;
|
||||
_dungeonThumbnail = root.Q<VisualElement>("DungeonThumbnail");
|
||||
_next = root.Q<Button>("Next");
|
||||
_next.clicked += NextClicked;
|
||||
|
|
|
|||
22
PuzzleGameProject/Assets/Scripts/UI/RulesPageController.cs
Normal file
22
PuzzleGameProject/Assets/Scripts/UI/RulesPageController.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using DungeonSelection;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
public class RulesPageController : MonoBehaviour
|
||||
{
|
||||
private void OnEnable()
|
||||
{
|
||||
UIEvents.CloseRules += Close;
|
||||
|
||||
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
|
||||
|
||||
Button close = root.Q<Button>("Close");
|
||||
close.clicked += Close;
|
||||
}
|
||||
|
||||
private void Close()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2a5aa3e2c35674149847602fe21313a4
|
||||
BIN
PuzzleGameProject/Assets/Sprites/Armor.png
Normal file
BIN
PuzzleGameProject/Assets/Sprites/Armor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
218
PuzzleGameProject/Assets/Sprites/Armor.png.meta
Normal file
218
PuzzleGameProject/Assets/Sprites/Armor.png.meta
Normal file
|
|
@ -0,0 +1,218 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cd864920aacb45b4eaf6bd3c70bb6625
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -2757887451555568444
|
||||
second: Armor_0
|
||||
- first:
|
||||
213: 8057395214944995007
|
||||
second: Armor_1
|
||||
- first:
|
||||
213: -4443136105927648964
|
||||
second: Armor_2
|
||||
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: Armor_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 13
|
||||
y: 69
|
||||
width: 454
|
||||
height: 419
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 4c4e58789f30ab9d0800000000000000
|
||||
internalID: -2757887451555568444
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Armor_1
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 535
|
||||
y: 156
|
||||
width: 7
|
||||
height: 11
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: fb68ab1124e91df60800000000000000
|
||||
internalID: 8057395214944995007
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Armor_2
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 238
|
||||
y: 0
|
||||
width: 6
|
||||
height: 8
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: c39587d904fc652c0800000000000000
|
||||
internalID: -4443136105927648964
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -16,5 +16,6 @@
|
|||
<ui:Button text="Next" name="Next" class="button border" style="-unity-text-align: middle-left;" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:Button text="How To Play" name="Rules" class="border" style="position: absolute; top: 0; right: 0; background-color: rgb(182, 127, 194);" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
||||
|
|
|
|||
38
PuzzleGameProject/Assets/UI/Rules.uxml
Normal file
38
PuzzleGameProject/Assets/UI/Rules.uxml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
|
||||
<Style src="project://database/Assets/UI/Styles/style1.uss?fileID=7433441132597879392&guid=97546bb1d1d93d84e9b4ef0c8ae11a0e&type=3#style1" />
|
||||
<Style src="project://database/Assets/rules.uss?fileID=7433441132597879392&guid=37df2aec7be296542a3f7694158ff548&type=3#rules" />
|
||||
<engine:VisualElement name="VisualElement" style="flex-grow: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; align-items: center; -unity-font-style: normal; background-color: rgba(0, 0, 0, 0.49); padding-top: 50px; padding-right: 50px; padding-bottom: 50px; padding-left: 50px;">
|
||||
<engine:VisualElement name="Page" class="border" style="flex-grow: 1; width: 700px; height: 500px; background-color: rgb(182, 127, 194); padding-top: 20px; padding-right: 6px; padding-bottom: 20px; padding-left: 20px;">
|
||||
<engine:Label text="How To Play" class="MenuHOne" style="-unity-text-align: upper-center; flex-grow: 0; flex-direction: row; margin-bottom: 16px; margin-top: 0;" />
|
||||
<engine:ScrollView horizontal-scroller-visibility="Auto" vertical-scroller-visibility="AlwaysVisible" style="flex-grow: 1;">
|
||||
<engine:VisualElement name="Rolling" style="flex-grow: 1;">
|
||||
<engine:Label text="Roll Explore Repeat" name="RollExploreRepeat" class="MenuHTwo" style="text-overflow: clip; white-space: normal;" />
|
||||
<engine:Label text="Roll the dice. Select two. Unlock a room. Repeat. " parse-escape-sequences="true" class="MenuText" style="white-space: normal; -unity-font-style: normal;" />
|
||||
<engine:Label text="If you don't unlock two rooms with the rolled dice you will take damage." class="MenuText" style="-unity-font-style: normal;" />
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement name="KillMonsters" style="flex-grow: 1;">
|
||||
<engine:Label text="Kill All Monsters" name="Label" class="MenuHTwo" />
|
||||
<engine:Label text="Kill monsters by unlocking their rooms until all their health boxes are checked." class="MenuText" />
|
||||
<engine:Label text="If you kill all the monsters in the dungeon you win! The more Diamonds you collect and the less Damage you take the higher your score at the end." class="MenuText" />
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement name="Abilites" style="flex-grow: 1;">
|
||||
<engine:Label text="Abilities" class="MenuHTwo" />
|
||||
<engine:Label text="Found in chests." />
|
||||
<engine:VisualElement name="BlackDie" class="ability">
|
||||
<engine:VisualElement class="ability-image" style="flex-grow: 0; background-image: url("project://database/Assets/Sprites/No%20Edges.png?fileID=21300000&guid=982f0bccdf239df48af0a465f9ce7536&type=3#No Edges"); width: 50px; height: 50px;" />
|
||||
<engine:Label text="Let's you use the black die to unlock a room. You start with three uses." name="BlackDieText" class="MenuText" />
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement name="Key" class="ability">
|
||||
<engine:VisualElement class="ability-image" style="flex-grow: 0; background-image: url("project://database/Assets/Sprites/Key.png?fileID=2800000&guid=99e2733a78fd7a543b2adc84e3d4d3b4&type=3#Key"); width: 50px; height: 50px;" />
|
||||
<engine:Label text="Unlock a room." name="KeyText" />
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement name="Armor" class="ability">
|
||||
<engine:VisualElement class="ability-image" style="flex-grow: 0; width: 50px; height: 50px; background-image: url("project://database/Assets/Sprites/Armor.png?fileID=-2757887451555568444&guid=cd864920aacb45b4eaf6bd3c70bb6625&type=3#Armor_0");" />
|
||||
<engine:Label text="Blocks damage." name="ArmorText" style="-unity-text-align: upper-left;" />
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:ScrollView>
|
||||
<engine:Button text="X" name="Close" class="CloseButton" />
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:UXML>
|
||||
10
PuzzleGameProject/Assets/UI/Rules.uxml.meta
Normal file
10
PuzzleGameProject/Assets/UI/Rules.uxml.meta
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9dbb5ec480f334846b45e80a82cefb64
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
}
|
||||
|
||||
.MenuText {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.unity-toggle__checkmark {
|
||||
|
|
@ -116,3 +117,58 @@
|
|||
border-top-color: rgb(0, 0, 0);
|
||||
border-bottom-color: rgb(0, 0, 0);
|
||||
}
|
||||
|
||||
.MenuHTwo {
|
||||
-unity-font-definition: url("project://database/Library/unity%20default%20resources?fileID=10102&guid=0000000000000000e000000000000000&type=0#LegacyRuntime");
|
||||
-unity-font-style: normal;
|
||||
font-size: 39px;
|
||||
}
|
||||
|
||||
.MenuText {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.unity-scroller {
|
||||
display: flex;
|
||||
visibility: visible;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.unity-scroller__low-button {
|
||||
visibility: hidden;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.unity-scroller__high-button {
|
||||
visibility: hidden;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.unity-slider__input {
|
||||
visibility: visible;
|
||||
width: 5px;
|
||||
align-self: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.unity-base-slider__tracker {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.unity-base-slider__dragger {
|
||||
visibility: visible;
|
||||
background-color: rgb(0, 0, 0);
|
||||
border-top-left-radius: 3px;
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
width: 5px;
|
||||
}
|
||||
|
||||
.unity-base-slider__drag-container {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.MenuHOne {
|
||||
font-size: 55px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,26 +35,26 @@ MonoBehaviour:
|
|||
m_List:
|
||||
- rid: 7752762179098771456
|
||||
- rid: 7752762179098771457
|
||||
- rid: 4022734937275760713
|
||||
- rid: 4022734937275760725
|
||||
- rid: 7752762179098771459
|
||||
- rid: 4022734937275760714
|
||||
- rid: 4022734937275760726
|
||||
- rid: 7752762179098771461
|
||||
- rid: 7752762179098771462
|
||||
- rid: 4022734937275760715
|
||||
- rid: 4022734937275760727
|
||||
- rid: 7752762179098771464
|
||||
- rid: 4022734937275760716
|
||||
- rid: 4022734937275760728
|
||||
- rid: 7752762179098771466
|
||||
- rid: 4022734937275760717
|
||||
- rid: 4022734937275760729
|
||||
- rid: 7752762179098771468
|
||||
- rid: 4022734937275760718
|
||||
- rid: 4022734937275760719
|
||||
- rid: 4022734937275760720
|
||||
- rid: 4022734937275760730
|
||||
- rid: 4022734937275760731
|
||||
- rid: 4022734937275760732
|
||||
- rid: 7752762179098771472
|
||||
- rid: 4022734937275760721
|
||||
- rid: 4022734937275760722
|
||||
- rid: 4022734937275760723
|
||||
- rid: 4022734937275760733
|
||||
- rid: 4022734937275760734
|
||||
- rid: 4022734937275760735
|
||||
- rid: 7752762179098771476
|
||||
- rid: 4022734937275760724
|
||||
- rid: 4022734937275760736
|
||||
m_RuntimeSettings:
|
||||
m_List:
|
||||
- rid: 7752762179098771456
|
||||
|
|
@ -90,7 +90,7 @@ MonoBehaviour:
|
|||
references:
|
||||
version: 2
|
||||
RefIds:
|
||||
- rid: 4022734937275760713
|
||||
- rid: 4022734937275760725
|
||||
type: {class: UniversalRenderPipelineEditorShaders, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||
data:
|
||||
m_AutodeskInteractive: {fileID: 4800000, guid: 0e9d5a909a1f7e84882a534d0d11e49f, type: 3}
|
||||
|
|
@ -102,14 +102,14 @@ MonoBehaviour:
|
|||
m_DefaultSpeedTree7Shader: {fileID: 4800000, guid: 0f4122b9a743b744abe2fb6a0a88868b, type: 3}
|
||||
m_DefaultSpeedTree8Shader: {fileID: -6465566751694194690, guid: 9920c1f1781549a46ba081a2a15a16ec, type: 3}
|
||||
m_DefaultSpeedTree9Shader: {fileID: -6465566751694194690, guid: cbd3e1cc4ae141c42a30e33b4d666a61, type: 3}
|
||||
- rid: 4022734937275760714
|
||||
- rid: 4022734937275760726
|
||||
type: {class: URPShaderStrippingSetting, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||
data:
|
||||
m_Version: 0
|
||||
m_StripUnusedPostProcessingVariants: 0
|
||||
m_StripUnusedVariants: 1
|
||||
m_StripScreenCoordOverrideVariants: 1
|
||||
- rid: 4022734937275760715
|
||||
- rid: 4022734937275760727
|
||||
type: {class: UniversalRendererResources, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||
data:
|
||||
m_Version: 0
|
||||
|
|
@ -117,7 +117,7 @@ MonoBehaviour:
|
|||
m_CameraMotionVector: {fileID: 4800000, guid: c56b7e0d4c7cb484e959caeeedae9bbf, type: 3}
|
||||
m_StencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3}
|
||||
m_DBufferClear: {fileID: 4800000, guid: f056d8bd2a1c7e44e9729144b4c70395, type: 3}
|
||||
- rid: 4022734937275760716
|
||||
- rid: 4022734937275760728
|
||||
type: {class: UniversalRenderPipelineEditorMaterials, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||
data:
|
||||
m_DefaultMaterial: {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
|
||||
|
|
@ -126,7 +126,7 @@ MonoBehaviour:
|
|||
m_DefaultTerrainMaterial: {fileID: 2100000, guid: 594ea882c5a793440b60ff72d896021e, type: 2}
|
||||
m_DefaultDecalMaterial: {fileID: 2100000, guid: 31d0dcc6f2dd4e4408d18036a2c93862, type: 2}
|
||||
m_DefaultSpriteMaterial: {fileID: 2100000, guid: 9dfc825aed78fcd4ba02077103263b40, type: 2}
|
||||
- rid: 4022734937275760717
|
||||
- rid: 4022734937275760729
|
||||
type: {class: GPUResidentDrawerResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.GPUDriven.Runtime}
|
||||
data:
|
||||
m_Version: 0
|
||||
|
|
@ -139,21 +139,21 @@ MonoBehaviour:
|
|||
m_OcclusionCullingDebugKernels: {fileID: 7200000, guid: b23e766bcf50ca4438ef186b174557df, type: 3}
|
||||
m_DebugOcclusionTestPS: {fileID: 4800000, guid: d3f0849180c2d0944bc71060693df100, type: 3}
|
||||
m_DebugOccluderPS: {fileID: 4800000, guid: b3c92426a88625841ab15ca6a7917248, type: 3}
|
||||
- rid: 4022734937275760718
|
||||
- rid: 4022734937275760730
|
||||
type: {class: ProbeVolumeRuntimeResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||
data:
|
||||
m_Version: 1
|
||||
probeVolumeBlendStatesCS: {fileID: 7200000, guid: a3f7b8c99de28a94684cb1daebeccf5d, type: 3}
|
||||
probeVolumeUploadDataCS: {fileID: 7200000, guid: 0951de5992461754fa73650732c4954c, type: 3}
|
||||
probeVolumeUploadDataL2CS: {fileID: 7200000, guid: 6196f34ed825db14b81fb3eb0ea8d931, type: 3}
|
||||
- rid: 4022734937275760719
|
||||
- rid: 4022734937275760731
|
||||
type: {class: IncludeAdditionalRPAssets, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||
data:
|
||||
m_version: 0
|
||||
m_IncludeReferencedInScenes: 0
|
||||
m_IncludeAssetsByLabel: 0
|
||||
m_LabelToInclude:
|
||||
- rid: 4022734937275760720
|
||||
- rid: 4022734937275760732
|
||||
type: {class: ProbeVolumeBakingResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||
data:
|
||||
m_Version: 1
|
||||
|
|
@ -166,7 +166,7 @@ MonoBehaviour:
|
|||
skyOcclusionRT: {fileID: -5126288278712620388, guid: 5a2a534753fbdb44e96c3c78b5a6999d, type: 3}
|
||||
renderingLayerCS: {fileID: -6772857160820960102, guid: 94a070d33e408384bafc1dea4a565df9, type: 3}
|
||||
renderingLayerRT: {fileID: -5126288278712620388, guid: 94a070d33e408384bafc1dea4a565df9, type: 3}
|
||||
- rid: 4022734937275760721
|
||||
- rid: 4022734937275760733
|
||||
type: {class: ProbeVolumeDebugResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||
data:
|
||||
m_Version: 1
|
||||
|
|
@ -176,18 +176,18 @@ MonoBehaviour:
|
|||
probeVolumeOffsetDebugShader: {fileID: 4800000, guid: db8bd7436dc2c5f4c92655307d198381, type: 3}
|
||||
probeSamplingDebugMesh: {fileID: -3555484719484374845, guid: 20be25aac4e22ee49a7db76fb3df6de2, type: 3}
|
||||
numbersDisplayTex: {fileID: 2800000, guid: 73fe53b428c5b3440b7e87ee830b608a, type: 3}
|
||||
- rid: 4022734937275760722
|
||||
- rid: 4022734937275760734
|
||||
type: {class: STP/RuntimeResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||
data:
|
||||
m_setupCS: {fileID: 7200000, guid: 33be2e9a5506b2843bdb2bdff9cad5e1, type: 3}
|
||||
m_preTaaCS: {fileID: 7200000, guid: a679dba8ec4d9ce45884a270b0e22dda, type: 3}
|
||||
m_taaCS: {fileID: 7200000, guid: 3923900e2b41b5e47bc25bfdcbcdc9e6, type: 3}
|
||||
- rid: 4022734937275760723
|
||||
- rid: 4022734937275760735
|
||||
type: {class: ProbeVolumeGlobalSettings, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||
data:
|
||||
m_Version: 1
|
||||
m_ProbeVolumeDisableStreamingAssets: 0
|
||||
- rid: 4022734937275760724
|
||||
- rid: 4022734937275760736
|
||||
type: {class: UniversalRenderPipelineEditorAssets, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||
data:
|
||||
m_DefaultSettingsVolumeProfile: {fileID: 11400000, guid: eda47df5b85f4f249abf7abd73db2cb2, type: 2}
|
||||
|
|
|
|||
16
PuzzleGameProject/Assets/rules.uss
Normal file
16
PuzzleGameProject/Assets/rules.uss
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.ability {
|
||||
margin-top: 10px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
margin-left: 10px;
|
||||
justify-content: flex-start;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ability-image {
|
||||
margin-top: 0;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
11
PuzzleGameProject/Assets/rules.uss.meta
Normal file
11
PuzzleGameProject/Assets/rules.uss.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 37df2aec7be296542a3f7694158ff548
|
||||
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