狗屎Minimax坏我代码

This commit is contained in:
SoulliesOfficial
2026-04-18 13:57:19 -04:00
parent 41140a2017
commit 7379583165
473 changed files with 34480 additions and 8069 deletions

View File

@@ -0,0 +1,14 @@
fileFormatVersion: 2
guid: 69288994bc601ac44b2feeff5bfde1fe
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/ExampleScene_House.unity
uploadId: 884440

View File

@@ -11,6 +11,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/ExampleScene_SkyIsland.unity
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/ExampleScene_SkyIsland.unity
uploadId: 884440

View File

@@ -112,6 +112,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/MapProfiles/SkyIsland/SkyIsland_Map.png
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/MapProfiles/SkyIsland/SkyIsland_Map.png
uploadId: 884440

View File

@@ -12,6 +12,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/MapProfiles/SkyIsland/SkyIsland_Profile.asset
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/MapProfiles/SkyIsland/SkyIsland_Profile.asset
uploadId: 884440

View File

@@ -112,6 +112,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/MapProfiles/SkyIsland_CustomLayer.png
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/MapProfiles/SkyIsland_CustomLayer.png
uploadId: 884440

View File

@@ -12,6 +12,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Materials/Physics/FrictionPhysics.physicMaterial
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Materials/Physics/FrictionPhysics.physicMaterial
uploadId: 884440

View File

@@ -2,34 +2,22 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: PickUpItem
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
m_InvalidKeywords: []
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
@@ -66,39 +54,11 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 1
@@ -106,35 +66,11 @@ Material:
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0
- _SmoothnessTextureChannel: 1
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _UVSec: 0
- _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 0.3970588, g: 0.3970588, b: 0.3970588, a: 1}
- _Color: {r: 0.39705878, g: 0.39705878, b: 0.39705878, a: 1}
- _Color: {r: 0.39705884, g: 0.39705884, b: 0.39705884, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &5656960825619739841
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10

View File

@@ -12,6 +12,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Materials/PickUpItem.mat
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Materials/PickUpItem.mat
uploadId: 884440

View File

@@ -2,36 +2,23 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Prism
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
- MOTIONVECTORS
- DepthOnly
- SHADOWCASTER
m_LockedProperties:
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
@@ -68,39 +55,11 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 1
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _DstBlendAlpha: 10
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 1
@@ -108,35 +67,11 @@ Material:
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0
- _SmoothnessTextureChannel: 1
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 1
- _UVSec: 0
- _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 0
m_Colors:
- _BaseColor: {r: 1, g: 0.80784315, b: 0, a: 0.92156863}
- _Color: {r: 1, g: 0.80784315, b: 0, a: 0.92156863}
- _EmissionColor: {r: 0.078, g: 0.078, b: 0.078, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &7053210182929823040
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
version: 10

View File

@@ -12,6 +12,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Materials/Prism.mat
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Materials/Prism.mat
uploadId: 884440

View File

@@ -0,0 +1,89 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Skybox
m_Shader: {fileID: 103, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _SUNDISK_HIGH_QUALITY
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Tex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _AtmosphereThickness: 1
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _Exposure: 1
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _Rotation: 0
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SunDisk: 2
- _SunSize: 0.04
- _SunSizeConvergence: 5
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _GroundColor: {r: 0.369, g: 0.349, b: 0.341, a: 1}
- _SkyTint: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _Tint: {r: 0.28235295, g: 0.61960787, b: 0.7882353, a: 1}

View File

@@ -0,0 +1,17 @@
fileFormatVersion: 2
guid: ff1d6387875aad5409359bc915230094
timeCreated: 1547931841
licenseType: Store
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Materials/Skyboxes/Skybox.mat
uploadId: 884440

View File

@@ -98,6 +98,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Models/House.fbx
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Models/House.fbx
uploadId: 884440

View File

@@ -0,0 +1,111 @@
fileFormatVersion: 2
guid: 69bcf6c7ea18e42f5890f66c93354351
ModelImporter:
serializedVersion: 23
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2100000: House_Wood_2.001
2100002: House_Wood_1.001
2100004: House_Window.001
2100006: House_Wood_2.002
2100008: House_Wood_3.001
2100010: House_Floor
2100012: Painting
2300000: //RootNode
3300000: //RootNode
4300000: House
6400000: //RootNode
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 1
useSRGBMaterialColor: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
previousCalculatedGlobalScale: 1
hasPreviousCalculatedGlobalScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Models/House_Inside.fbx
uploadId: 884440

View File

@@ -95,6 +95,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Models/Prism.fbx
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Models/Prism.fbx
uploadId: 884440

View File

@@ -101,6 +101,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Models/SkyIsland.fbx
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Models/SkyIsland.fbx
uploadId: 884440

View File

@@ -1,21 +1,35 @@
fileFormatVersion: 2
guid: dfb0ee23a61adf448bc017be1adbd2b6
timeCreated: 1529567278
licenseType: Store
ModelImporter:
serializedVersion: 22
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2100000: Tree_Leaves
2100002: Tree_Trunk
2300000: //RootNode
3300000: //RootNode
4300000: Tree
6400000: //RootNode
serializedVersion: 22200
internalIDToNameTable:
- first:
1: 100000
second: //RootNode
- first:
4: 400000
second: //RootNode
- first:
21: 2100000
second: Tree_Leaves
- first:
21: 2100002
second: Tree_Trunk
- first:
23: 2300000
second: //RootNode
- first:
33: 3300000
second: //RootNode
- first:
43: 4300000
second: Tree
- first:
64: 6400000
second: //RootNode
externalObjects: {}
materials:
importMaterials: 1
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
@@ -24,6 +38,7 @@ ModelImporter:
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
@@ -32,6 +47,7 @@ ModelImporter:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
@@ -46,32 +62,49 @@ ModelImporter:
globalScale: 1
meshCompression: 0
addColliders: 1
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 0
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 0
fileIdsGeneration: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 0
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
@@ -81,14 +114,19 @@ ModelImporter:
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1}
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 0
importBlendShapeDeformPercent: 0
remapMaterialsIfMaterialImportModeIsNone: 1
additionalBone: 0
userData:
assetBundleName:
@@ -97,6 +135,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Models/Tree.fbx
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Models/Tree.fbx
uploadId: 884440

View File

@@ -0,0 +1,33 @@
using UnityEngine;
namespace SickscoreGames.ExampleScene
{
public class ExampleBouncePrism : MonoBehaviour
{
#region Variables
[Range(0f, 100f)]
public float bounceSpeed = 3f;
public float bounceHeight = .15f;
private Vector3 _pos;
#endregion
#region Main Methods
void Start ()
{
_pos = transform.position;
}
void Update ()
{
// bounce prism up & down
if (bounceSpeed > 0f)
{
float newY = Mathf.Sin(Time.time * bounceSpeed) * bounceHeight + _pos.y;
transform.position = new Vector3(transform.position.x, newY, transform.position.z);
}
}
#endregion
}
}

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 72d3ef2e3d3e94bfabf28fa01d281665
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleBouncePrism.cs
uploadId: 884440

View File

@@ -1,6 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
namespace SickscoreGames.ExampleScene
{
@@ -16,7 +14,7 @@ namespace SickscoreGames.ExampleScene
private Transform _transform;
private Rigidbody _rigidbody;
private bool isGrounded;
private bool _isGrounded;
#endregion
@@ -36,14 +34,18 @@ namespace SickscoreGames.ExampleScene
void FixedUpdate ()
{
// check if grounded
if (isGrounded) {
if (_isGrounded) {
// directional input
Vector3 targetVelocity = new Vector3 (Input.GetAxis ("Horizontal"), 0f, Input.GetAxis ("Vertical"));
float moveSpeed = (Input.GetKey (KeyCode.LeftShift)) ? runSpeed : walkSpeed;
Vector3 targetVelocity = new Vector3 (ExampleUniversalInput.GetAxis("Horizontal"), 0f, ExampleUniversalInput.GetAxis ("Vertical"));
float moveSpeed = (ExampleUniversalInput.GetKey (KeyCode.LeftShift)) ? runSpeed : walkSpeed;
targetVelocity = _transform.TransformDirection (targetVelocity) * moveSpeed;
// calculate velocity and max velocity change
#if UNITY_6000_0_OR_NEWER
Vector3 velocity = _rigidbody.linearVelocity;
#else
Vector3 velocity = _rigidbody.velocity;
#endif
Vector3 velocityChange = (targetVelocity - velocity);
velocityChange.x = Mathf.Clamp (velocityChange.x, -8f, 8f);
velocityChange.z = Mathf.Clamp (velocityChange.z, -8f, 8f);
@@ -51,14 +53,20 @@ namespace SickscoreGames.ExampleScene
_rigidbody.AddForce (velocityChange, ForceMode.VelocityChange);
// jump input
if (Input.GetKeyDown (KeyCode.Space))
if (ExampleUniversalInput.GetKeyDown(KeyCode.Space))
{
#if UNITY_6000_0_OR_NEWER
_rigidbody.linearVelocity = new Vector3 (velocity.x, CalculateJumpVerticalSpeed (), velocity.z);
#else
_rigidbody.velocity = new Vector3 (velocity.x, CalculateJumpVerticalSpeed (), velocity.z);
#endif
}
}
// apply force to rigidbody
_rigidbody.AddForce (new Vector3 (0f, -gravity * _rigidbody.mass, 0f));
isGrounded = false;
_isGrounded = false;
}
#endregion
@@ -66,7 +74,7 @@ namespace SickscoreGames.ExampleScene
#region Utility Methods
void OnCollisionStay ()
{
isGrounded = true;
_isGrounded = true;
}

View File

@@ -14,6 +14,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleController.cs
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleController.cs
uploadId: 884440

View File

@@ -1,12 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using SickscoreGames.ExampleScene;
using SickscoreGames.HUDNavigationSystem;
using SickscoreGames.ExampleScene;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ExampleInteractions : MonoBehaviour
{
@@ -16,6 +11,7 @@ public class ExampleInteractions : MonoBehaviour
private RaycastHit hit;
private Transform pickupText;
private Transform openDoorText;
private Transform interactionText;
private HUDNavigationSystem _HUDNavigationSystem;
#endregion
@@ -30,9 +26,17 @@ public class ExampleInteractions : MonoBehaviour
void Update ()
{
if (_HUDNavigationSystem == null)
return;
HandleKeyInput ();
HandleItemPickUp ();
HandlePrismColorChange ();
if (_HUDNavigationSystem.isEnabled)
{
HandleItemPickUp ();
HandleDoorOpening();
HandlePrismColorChange ();
}
}
#endregion
@@ -41,78 +45,67 @@ public class ExampleInteractions : MonoBehaviour
void HandleKeyInput ()
{
// update radar zoom / indicator border input
if (Input.GetKey (KeyCode.X) && _HUDNavigationSystem.radarZoom < 5f)
if (ExampleUniversalInput.GetKey (KeyCode.X) && _HUDNavigationSystem.radarZoom < 5f)
_HUDNavigationSystem.radarZoom += .0175f;
else if (Input.GetKey (KeyCode.C) && _HUDNavigationSystem.radarZoom > .25f)
else if (ExampleUniversalInput.GetKey (KeyCode.C) && _HUDNavigationSystem.radarZoom > .25f)
_HUDNavigationSystem.radarZoom -= .0175f;
else if (Input.GetKey (KeyCode.V) && _HUDNavigationSystem.indicatorOffscreenBorder < .7f)
else if (ExampleUniversalInput.GetKey (KeyCode.V) && _HUDNavigationSystem.indicatorOffscreenBorder < .7f)
_HUDNavigationSystem.indicatorOffscreenBorder += .01f;
else if (Input.GetKey (KeyCode.B) && _HUDNavigationSystem.indicatorOffscreenBorder > .07f)
else if (ExampleUniversalInput.GetKey (KeyCode.B) && _HUDNavigationSystem.indicatorOffscreenBorder > .07f)
_HUDNavigationSystem.indicatorOffscreenBorder -= .01f;
else if (Input.GetKey (KeyCode.N) && _HUDNavigationSystem.minimapScale > .06f)
else if (ExampleUniversalInput.GetKey (KeyCode.N) && _HUDNavigationSystem.minimapScale > .06f)
_HUDNavigationSystem.minimapScale -= .0075f;
else if (Input.GetKey (KeyCode.M) && _HUDNavigationSystem.minimapScale < .35f)
else if (ExampleUniversalInput.GetKey (KeyCode.M) && _HUDNavigationSystem.minimapScale < .35f)
_HUDNavigationSystem.minimapScale += .0075f;
// update feature enable / disable input
if (Input.GetKeyDown (KeyCode.H))
if (ExampleUniversalInput.GetKeyDown (KeyCode.H))
_HUDNavigationSystem.EnableSystem (!_HUDNavigationSystem.isEnabled);
if (Input.GetKeyDown (KeyCode.Alpha1))
if (ExampleUniversalInput.GetKeyDown (KeyCode.Alpha1))
_HUDNavigationSystem.EnableRadar (!_HUDNavigationSystem.useRadar);
if (Input.GetKeyDown (KeyCode.Alpha2))
if (ExampleUniversalInput.GetKeyDown (KeyCode.Alpha2))
_HUDNavigationSystem.EnableCompassBar (!_HUDNavigationSystem.useCompassBar);
if (Input.GetKeyDown (KeyCode.Alpha3))
if (ExampleUniversalInput.GetKeyDown (KeyCode.Alpha3))
_HUDNavigationSystem.EnableIndicators (!_HUDNavigationSystem.useIndicators);
if (Input.GetKeyDown (KeyCode.Alpha4))
if (ExampleUniversalInput.GetKeyDown (KeyCode.Alpha4))
_HUDNavigationSystem.EnableMinimap (!_HUDNavigationSystem.useMinimap);
// toggle radar / minimap mode
if (Input.GetKeyDown (KeyCode.Alpha5))
if (ExampleUniversalInput.GetKeyDown (KeyCode.Alpha5))
_HUDNavigationSystem.radarMode = (_HUDNavigationSystem.radarMode == RadarModes.RotateRadar) ? RadarModes.RotatePlayer : RadarModes.RotateRadar;
if (Input.GetKeyDown (KeyCode.Alpha6))
if (ExampleUniversalInput.GetKeyDown (KeyCode.Alpha6))
_HUDNavigationSystem.minimapMode = (_HUDNavigationSystem.minimapMode == MinimapModes.RotateMinimap) ? MinimapModes.RotatePlayer : MinimapModes.RotateMinimap;
// toggle minimap custom layers
if (Input.GetKeyDown (KeyCode.Alpha7) && _HUDNavigationSystem.currentMinimapProfile != null) {
GameObject blackWhiteLayer = _HUDNavigationSystem.currentMinimapProfile.GetCustomLayer ("exampleLayer");
if (blackWhiteLayer != null)
blackWhiteLayer.SetActive (!blackWhiteLayer.activeSelf);
}
// toggle day/night scene
if (Input.GetKeyUp (KeyCode.Return)) {
if (SceneManager.GetActiveScene ().buildIndex == 0)
SceneManager.LoadScene (1);
else
SceneManager.LoadScene (0);
if (ExampleUniversalInput.GetKeyDown (KeyCode.Alpha7) && _HUDNavigationSystem.currentMinimapProfile) {
GameObject customLayer = _HUDNavigationSystem.currentMinimapProfile.GetCustomLayer ("exampleLayer");
if (customLayer)
customLayer.SetActive (!customLayer.activeSelf);
}
}
void HandleItemPickUp ()
{
if (!_HUDNavigationSystem.isEnabled)
return;
// check for pickup items
if (Physics.Raycast (transform.position, transform.TransformDirection (Vector3.forward), out hit, interactionDistance, layerMask) && hit.collider.name.Contains ("PickUp")) {
// get HUD navigation element component
HUDNavigationElement element = hit.collider.gameObject.GetComponent<HUDNavigationElement> ();
if (element != null) {
if (element) {
// show pickup text
if (element.Indicator != null) {
if (element.Indicator) {
pickupText = element.Indicator.GetCustomTransform ("pickupText");
if (pickupText != null)
if (pickupText)
pickupText.gameObject.SetActive (true);
}
// wait for interaction input and destroy gameobject
if (Input.GetKeyDown (KeyCode.E))
if (ExampleUniversalInput.GetKeyDown (KeyCode.E))
Destroy (element.gameObject);
}
} else {
// reset pickup text
if (pickupText != null) {
if (pickupText) {
pickupText.gameObject.SetActive (false);
pickupText = null;
}
@@ -120,25 +113,56 @@ public class ExampleInteractions : MonoBehaviour
}
void HandleDoorOpening ()
{
// check for door
if (Physics.Raycast (transform.position, transform.TransformDirection (Vector3.forward), out hit, interactionDistance, layerMask) && hit.collider.name.Contains ("Door")) {
// get HUD navigation element component
HUDNavigationElement element = hit.collider.gameObject.GetComponent<HUDNavigationElement> ();
if (element) {
// show text
if (element.Indicator) {
openDoorText = element.Indicator.GetCustomTransform ("openDoorText");
if (openDoorText)
openDoorText.gameObject.SetActive (true);
}
// wait for input and change scene
if (ExampleUniversalInput.GetKeyDown (KeyCode.E))
{
// toggle SkyIsland / House scene
if (SceneManager.GetActiveScene().buildIndex == 0)
SceneManager.LoadScene(1);
else
SceneManager.LoadScene(0);
}
}
} else {
// reset text
if (openDoorText) {
openDoorText.gameObject.SetActive (false);
openDoorText = null;
}
}
}
void HandlePrismColorChange ()
{
if (!_HUDNavigationSystem.isEnabled)
return;
// check for colored prisms
if (Physics.Raycast (transform.position, transform.TransformDirection (Vector3.forward), out hit, interactionDistance, layerMask) && hit.collider.name.Contains ("Prism")) {
// get HUD navigation element component
HUDNavigationElement element = hit.collider.gameObject.GetComponentInChildren<HUDNavigationElement> ();
if (element != null) {
if (element) {
// show interaction text
if (element.Indicator != null) {
if (element.Indicator) {
interactionText = element.Indicator.GetCustomTransform ("interactionText");
if (interactionText != null)
if (interactionText)
interactionText.gameObject.SetActive (true);
}
// wait for interaction input and change prism color
if (Input.GetKeyDown (KeyCode.E)) {
if (ExampleUniversalInput.GetKeyDown (KeyCode.E)) {
// generate random color
Color randomColor = Random.ColorHSV (0f, 1f, 1f, 1f, .5f, 1f);
@@ -148,7 +172,7 @@ public class ExampleInteractions : MonoBehaviour
}
} else {
// reset interaction text
if (interactionText != null) {
if (interactionText) {
interactionText.gameObject.SetActive (false);
interactionText = null;
}
@@ -160,7 +184,7 @@ public class ExampleInteractions : MonoBehaviour
{
// get renderer from prism
Renderer prismRenderer = element.transform.parent.GetComponent<Renderer> ();
if (prismRenderer != null)
if (prismRenderer)
ChangePrismColor (element, prismRenderer.material.color);
}
@@ -168,31 +192,31 @@ public class ExampleInteractions : MonoBehaviour
static void ChangePrismColor (HUDNavigationElement element, Color elementColor)
{
// change radar color
if (element.Radar != null)
if (element.Radar)
element.Radar.ChangeIconColor (elementColor);
// change compass bar color
if (element.CompassBar != null)
if (element.CompassBar)
element.CompassBar.ChangeIconColor (elementColor);
// change indicator colors
if (element.Indicator != null) {
if (element.Indicator) {
element.Indicator.ChangeIconColor (elementColor);
element.Indicator.ChangeOffscreenIconColor (elementColor);
}
// change minimap color
if (element.Minimap != null)
if (element.Minimap)
element.Minimap.ChangeIconColor (elementColor);
// change prism material color
Renderer prismRenderer = element.transform.parent.GetComponent<Renderer> ();
if (prismRenderer != null)
if (prismRenderer)
prismRenderer.material.color = new Color (elementColor.r, elementColor.g, elementColor.b, prismRenderer.material.color.a);
// change prism light (Night Scene)
// change prism light (if present)
Light prismLight = element.transform.parent.gameObject.GetComponentInChildren<Light> ();
if (prismLight != null)
if (prismLight)
prismLight.color = new Color (elementColor.r, elementColor.g, elementColor.b);
}
#endregion

View File

@@ -15,6 +15,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleInteractions.cs
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleInteractions.cs
uploadId: 884440

View File

@@ -1,6 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
#if ENABLE_INPUT_SYSTEM
using UnityEngine.InputSystem;
#endif
namespace SickscoreGames.ExampleScene
{
@@ -14,37 +15,52 @@ namespace SickscoreGames.ExampleScene
public Vector2 rotationLimitsY = new Vector2 (-60f, 60f);
public float rotationSmooth = 8f;
private Quaternion rotationOrigin;
private float currentRotationX, currentRotationY = 0f;
private Quaternion _rotationOrigin;
private float _currentRotationX, _currentRotationY = 0f;
#endregion
#region Main Methods
void Awake ()
{
rotationOrigin = transform.localRotation;
_rotationOrigin = transform.localRotation;
#if ENABLE_INPUT_SYSTEM
sensitivityX /= 4;
sensitivityY /= 4;
#endif
}
void Update ()
{
// get input
float mouseX = Input.GetAxis ("Mouse X");
float mouseY = Input.GetAxis ("Mouse Y");
float mouseX = 0f;
float mouseY = 0f;
#if ENABLE_INPUT_SYSTEM
if (Mouse.current != null)
{
mouseX = Mouse.current.delta.x.ReadValue();
mouseY = Mouse.current.delta.y.ReadValue();
}
#endif
#if ENABLE_LEGACY_INPUT_MANAGER
mouseX = Input.GetAxis ("Mouse X");
mouseY = Input.GetAxis ("Mouse Y");
#endif
// calculate and apply rotations
if (axes == RotationAxes.MouseX) {
currentRotationX += mouseX * sensitivityX;
currentRotationX = this.ClampAngle (currentRotationX, rotationLimitsX.x, rotationLimitsX.y);
Quaternion rotationX = Quaternion.AngleAxis (currentRotationX, Vector3.up);
transform.localRotation = Quaternion.Lerp (transform.localRotation, rotationOrigin * rotationX, rotationSmooth * Time.deltaTime);
_currentRotationX += mouseX * sensitivityX;
_currentRotationX = this.ClampAngle (_currentRotationX, rotationLimitsX.x, rotationLimitsX.y);
Quaternion rotationX = Quaternion.AngleAxis (_currentRotationX, Vector3.up);
transform.localRotation = Quaternion.Lerp (transform.localRotation, _rotationOrigin * rotationX, rotationSmooth * Time.deltaTime);
} else {
currentRotationY += mouseY * sensitivityY;
currentRotationY = this.ClampAngle (currentRotationY, rotationLimitsY.x, rotationLimitsY.y);
Quaternion rotationY = Quaternion.AngleAxis (-currentRotationY, Vector3.right);
transform.localRotation = Quaternion.Lerp (transform.localRotation, rotationOrigin * rotationY, rotationSmooth * Time.deltaTime);
_currentRotationY += mouseY * sensitivityY;
_currentRotationY = this.ClampAngle (_currentRotationY, rotationLimitsY.x, rotationLimitsY.y);
Quaternion rotationY = Quaternion.AngleAxis (-_currentRotationY, Vector3.right);
transform.localRotation = Quaternion.Lerp (transform.localRotation, _rotationOrigin * rotationY, rotationSmooth * Time.deltaTime);
}
}
#endregion

View File

@@ -14,6 +14,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleMouseLook.cs
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleMouseLook.cs
uploadId: 884440

View File

@@ -1,6 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
namespace SickscoreGames.ExampleScene
{
@@ -21,7 +19,13 @@ namespace SickscoreGames.ExampleScene
// reset velocity
Rigidbody rBody = other.gameObject.GetComponent<Rigidbody> ();
if (rBody != null)
rBody.linearVelocity = other.transform.forward * 5f;
{
#if UNITY_6000_0_OR_NEWER
rBody.linearVelocity = other.transform.forward * 5f;;
#else
rBody.velocity = other.transform.forward * 5f;;
#endif
}
}
}
#endregion

View File

@@ -15,6 +15,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleResetPlayer.cs
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleResetPlayer.cs
uploadId: 884440

View File

@@ -1,5 +1,4 @@
using System.Collections;
using System.Collections.Generic;
using SickscoreGames.HUDNavigationSystem;
using UnityEngine;
namespace SickscoreGames.ExampleScene
@@ -9,6 +8,7 @@ namespace SickscoreGames.ExampleScene
#region Variables
[Range(0f, 100f)]
public float rotationSpeed = 75f;
public Color32 initialColor = new Color(1f, .8f, 0f, .95f);
#endregion
@@ -20,5 +20,34 @@ namespace SickscoreGames.ExampleScene
transform.Rotate (0f, rotationSpeed * Time.deltaTime, 0f);
}
#endregion
#region Helper Methods
public void SetInitialPrismColor (HUDNavigationElement element)
{
// change radar color
if (element.Radar != null)
element.Radar.ChangeIconColor(initialColor);
// change compass bar color
if (element.CompassBar != null)
element.CompassBar.ChangeIconColor(initialColor);
// change indicator colors
if (element.Indicator != null)
{
element.Indicator.ChangeIconColor(initialColor);
element.Indicator.ChangeOffscreenIconColor(initialColor);
}
// change minimap color
if (element.Minimap != null)
element.Minimap.ChangeIconColor(initialColor);
// change prism material color
Renderer prismRenderer = this.GetComponent<Renderer>();
if (prismRenderer != null)
prismRenderer.material.color = initialColor;
}
#endregion
}
}

View File

@@ -15,6 +15,6 @@ AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 2.2.0
assetPath: Assets/Sickscore Games/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleRotatePrism.cs
uploadId: 382610
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleRotatePrism.cs
uploadId: 884440

View File

@@ -0,0 +1,94 @@
using UnityEngine;
using System.Collections.Generic;
#if ENABLE_INPUT_SYSTEM
using UnityEngine.InputSystem;
#endif
namespace SickscoreGames.ExampleScene
{
public static class ExampleUniversalInput
{
static Dictionary<string, float> axisState = new Dictionary<string, float>();
public static float GetAxis(string axis)
{
#if ENABLE_INPUT_SYSTEM
float target = GetAxisRawNew(axis);
#else
float target = Input.GetAxisRaw(axis);
#endif
float current = axisState.TryGetValue(axis, out var v) ? v : 0f;
current = Mathf.MoveTowards(current, target, 3f * Time.deltaTime);
axisState[axis] = current;
return current;
}
public static bool GetKey(KeyCode key)
{
#if ENABLE_INPUT_SYSTEM
return GetKeyNew(key);
#else
return Input.GetKey(key);
#endif
}
public static bool GetKeyDown(KeyCode key)
{
#if ENABLE_INPUT_SYSTEM
return GetKeyNew(key, true);
#else
return Input.GetKeyDown(key);
#endif
}
#if ENABLE_INPUT_SYSTEM
static bool GetKeyNew(KeyCode key, bool downOnly = false)
{
var kb = Keyboard.current;
if (kb == null) return false;
return key switch
{
KeyCode.Space => downOnly ? kb.spaceKey.wasPressedThisFrame : kb.spaceKey.isPressed,
KeyCode.LeftShift => downOnly ? kb.leftShiftKey.wasPressedThisFrame : kb.leftShiftKey.isPressed,
KeyCode.X => downOnly ? kb.xKey.wasPressedThisFrame : kb.xKey.isPressed,
KeyCode.C => downOnly ? kb.cKey.wasPressedThisFrame : kb.cKey.isPressed,
KeyCode.V => downOnly ? kb.vKey.wasPressedThisFrame : kb.vKey.isPressed,
KeyCode.B => downOnly ? kb.bKey.wasPressedThisFrame : kb.bKey.isPressed,
KeyCode.N => downOnly ? kb.nKey.wasPressedThisFrame : kb.nKey.isPressed,
KeyCode.M => downOnly ? kb.mKey.wasPressedThisFrame : kb.mKey.isPressed,
KeyCode.H => downOnly ? kb.hKey.wasPressedThisFrame : kb.hKey.isPressed,
KeyCode.Alpha1 => downOnly ? kb.digit1Key.wasPressedThisFrame : kb.digit1Key.isPressed,
KeyCode.Alpha2 => downOnly ? kb.digit2Key.wasPressedThisFrame : kb.digit2Key.isPressed,
KeyCode.Alpha3 => downOnly ? kb.digit3Key.wasPressedThisFrame : kb.digit3Key.isPressed,
KeyCode.Alpha4 => downOnly ? kb.digit4Key.wasPressedThisFrame : kb.digit4Key.isPressed,
KeyCode.Alpha5 => downOnly ? kb.digit5Key.wasPressedThisFrame : kb.digit5Key.isPressed,
KeyCode.Alpha6 => downOnly ? kb.digit6Key.wasPressedThisFrame : kb.digit6Key.isPressed,
KeyCode.Alpha7 => downOnly ? kb.digit7Key.wasPressedThisFrame : kb.digit7Key.isPressed,
KeyCode.E => downOnly ? kb.eKey.wasPressedThisFrame : kb.eKey.isPressed,
_ => false
};
}
static float GetAxisRawNew(string axis)
{
var k = Keyboard.current;
if (k == null) return 0f;
switch (axis)
{
case "Horizontal":
return (k.dKey.isPressed || k.rightArrowKey.isPressed ? 1 : 0) -
(k.aKey.isPressed || k.leftArrowKey.isPressed ? 1 : 0);
case "Vertical":
return (k.wKey.isPressed || k.upArrowKey.isPressed ? 1 : 0) -
(k.sKey.isPressed || k.downArrowKey.isPressed ? 1 : 0);
}
return 0f;
}
#endif
}
}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: e4ce55fbbb024284961c3401d8551713
timeCreated: 1773655547
AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Scripts/ExampleUniversalInput.cs
uploadId: 884440

View File

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

View File

@@ -0,0 +1,121 @@
fileFormatVersion: 2
guid: 7c4383883ec325d0fb5f7521017c5361
TextureImporter:
internalIDToNameTable: []
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: 0
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: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 1024
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Textures/PictureFrame_HNS.png
uploadId: 884440

View File

@@ -0,0 +1,121 @@
fileFormatVersion: 2
guid: d1752ef562dcbc3cda6289e69e16d26d
TextureImporter:
internalIDToNameTable: []
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: 0
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: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 1024
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
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
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 103056
packageName: HUD Navigation System
packageVersion: 3.0.0
assetPath: Assets/OtherPlugins/HUD-Navigation-System/_Examples/ExampleScene/Textures/PictureFrame_SG.png
uploadId: 884440