编码修复 | PSV适配优化 | 记事本显示问题

This commit is contained in:
sin365 2024-05-01 00:28:48 +08:00
parent c852298d18
commit 15aa175fb8
126 changed files with 495 additions and 614 deletions

View File

@ -9,7 +9,7 @@
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<RootNamespace></RootNamespace>
<ProjectGuid>{102FD55A-6E68-F793-72B7-E6B2C971287E}</ProjectGuid>
<ProjectGuid>{A2E6D919-69EE-A27F-D198-CD90CC5C4067}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Assembly-CSharp-Editor</AssemblyName>
@ -55,20 +55,17 @@
<ItemGroup>
<Compile Include="Assets\Editor\ProcessUnityVersion.cs" />
<Compile Include="Assets\Scripts\Editor\UnityTools.cs" />
<None Include="Assets\PostProcessing\Shaders\Editor\Trackball.shader" />
<None Include="Assets\PostProcessing\Shaders\Editor\ConvertToLog.shader" />
<None Include="Assets\PostProcessing\Shaders\Editor\CurveGrid.shader" />
<Reference Include="UnityEditor.StandardEvents">
<HintPath>H:/UnityProject/2018test/Library/ScriptAssemblies/UnityEditor.StandardEvents.dll</HintPath>
<HintPath>H:/UnityProject/MoTaForPSVita/Library/ScriptAssemblies/UnityEditor.StandardEvents.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro.Editor">
<HintPath>H:/UnityProject/2018test/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
<HintPath>H:/UnityProject/MoTaForPSVita/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.PackageManagerUI.Editor">
<HintPath>H:/UnityProject/2018test/Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll</HintPath>
<HintPath>H:/UnityProject/MoTaForPSVita/Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>H:/UnityProject/2018test/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
<HintPath>H:/UnityProject/MoTaForPSVita/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AIModule">
<HintPath>F:/Program Files/Unity/2018.2.19f1/Editor/Data/PlaybackEngines/PSP2Player/Tools/UnityEngine.AIModule.dll</HintPath>
@ -682,11 +679,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="Assembly-CSharp.csproj">
<Project>{8EE647E1-270F-5333-B5EE-D18DC95480BD}</Project> <Name>Assembly-CSharp</Name> </ProjectReference>
<ProjectReference Include="Unity.Postprocessing.Runtime.csproj">
<Project>{C837BEE5-260D-AFBE-961C-68BAFFBE231D}</Project> <Name>Unity.Postprocessing.Runtime</Name> </ProjectReference>
<ProjectReference Include="Unity.Postprocessing.Editor.csproj">
<Project>{5B5234D1-9B7E-7C68-DECA-E1011F95544D}</Project> <Name>Unity.Postprocessing.Editor</Name> </ProjectReference>
<Project>{548D52EE-098C-F54C-50DB-964C33A21BBD}</Project> <Name>Assembly-CSharp</Name> </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -9,7 +9,7 @@
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<RootNamespace></RootNamespace>
<ProjectGuid>{8EE647E1-270F-5333-B5EE-D18DC95480BD}</ProjectGuid>
<ProjectGuid>{548D52EE-098C-F54C-50DB-964C33A21BBD}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Assembly-CSharp</AssemblyName>
@ -205,79 +205,19 @@
<Compile Include="Assets\Scripts\UI\Silder\GameSlider.cs" />
<Compile Include="Assets\Scripts\UI\Text\GameText.cs" />
<Compile Include="Assets\Scripts\UI\Toggle\GameToggle.cs" />
<None Include="Assets\PostProcessing\Shaders\API\Switch.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\ExposureHistogram.hlsl" />
<None Include="Assets\PostProcessing\Shaders\API\Vulkan.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\MultiScaleVODownsample2.compute" />
<None Include="Assets\PostProcessing\Shaders\Debug\LightMeter.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\SubpixelMorphologicalAntialiasingBridge.hlsl" />
<None Include="Assets\PostProcessing\Shaders\API\PSSL.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Debug\Histogram.compute" />
<None Include="Assets\PostProcessing\Shaders\StdLib.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Sampling.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\CopyStdFromTexArray.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Dithering.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\ScalableAO.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\GrainBaker.shader" />
<None Include="Assets\Resources\cfg\mapinfo.txt" />
<None Include="Assets\PostProcessing\Shaders\Builtins\MultiScaleVOUpsample.compute" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Bloom.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\DepthOfField.hlsl" />
<None Include="Assets\PostProcessing\Shaders\API\D3D9.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Debug\Waveform.compute" />
<None Include="Assets\PostProcessing\Shaders\API\D3D11.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\FastApproximateAntialiasing.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Debug\Overlays.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Texture2DLerp.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\DiskKernels.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Copy.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\SubpixelMorphologicalAntialiasing.shader" />
<None Include="Assets\PostProcessing\Shaders\Debug\Waveform.shader" />
<None Include="Assets\PostProcessing\Shaders\API\D3D12.hlsl" />
<None Include="Assets\PostProcessing\Shaders\API\PSP2.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Debug\Vectorscope.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\ScalableAO.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Debug\Vectorscope.compute" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Lut2DBaker.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\DepthOfField.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\DiscardAlpha.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Texture3DLerp.compute" />
<None Include="Assets\PostProcessing\Shaders\Colors.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\MultiScaleVORender.compute" />
<None Include="Assets\PostProcessing\Shaders\Builtins\CopyStd.shader" />
<None Include="Assets\PostProcessing\Shaders\API\Metal.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\MultiScaleVODownsample1.compute" />
<None Include="Assets\PostProcessing\Shaders\Builtins\ScreenSpaceReflections.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\ExposureHistogram.compute" />
<None Include="Assets\PostProcessing\Shaders\Builtins\TemporalAntialiasing.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\AutoExposure.compute" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Distortion.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Debug\Histogram.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\MotionBlur.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Fog.hlsl" />
<None Include="Assets\PostProcessing\Shaders\xRLib.hlsl" />
<None Include="Assets\Resources\cfg\attinfo.txt" />
<None Include="Assets\PostProcessing\Shaders\ACES.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\CopyStdFromDoubleWide.shader" />
<None Include="Assets\PostProcessing\Shaders\API\OpenGL.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\ScreenSpaceReflections.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\GaussianDownsample.compute" />
<None Include="Assets\PostProcessing\Shaders\Builtins\DeferredFog.shader" />
<None Include="Assets\PostProcessing\Shaders\Builtins\Lut3DBaker.compute" />
<None Include="Assets\PostProcessing\Shaders\Builtins\SubpixelMorphologicalAntialiasing.hlsl" />
<None Include="Assets\PostProcessing\Shaders\API\XboxOne.hlsl" />
<None Include="Assets\PostProcessing\Shaders\Builtins\MultiScaleVO.shader" />
<Reference Include="UnityEditor.StandardEvents">
<HintPath>H:/UnityProject/2018test/Library/ScriptAssemblies/UnityEditor.StandardEvents.dll</HintPath>
<HintPath>H:/UnityProject/MoTaForPSVita/Library/ScriptAssemblies/UnityEditor.StandardEvents.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro.Editor">
<HintPath>H:/UnityProject/2018test/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
<HintPath>H:/UnityProject/MoTaForPSVita/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.PackageManagerUI.Editor">
<HintPath>H:/UnityProject/2018test/Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll</HintPath>
<HintPath>H:/UnityProject/MoTaForPSVita/Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>H:/UnityProject/2018test/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
<HintPath>H:/UnityProject/MoTaForPSVita/Library/ScriptAssemblies/Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AIModule">
<HintPath>F:/Program Files/Unity/2018.2.19f1/Editor/Data/PlaybackEngines/PSP2Player/Tools/UnityEngine.AIModule.dll</HintPath>
@ -832,12 +772,6 @@
<HintPath>F:/Program Files/Unity/2018.2.19f1/Editor/Data/MonoBleedingEdge/lib/mono/unityscript/Boo.Lang.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="Unity.Postprocessing.Runtime.csproj">
<Project>{C837BEE5-260D-AFBE-961C-68BAFFBE231D}</Project> <Name>Unity.Postprocessing.Runtime</Name> </ProjectReference>
<ProjectReference Include="Unity.Postprocessing.Editor.csproj">
<Project>{5B5234D1-9B7E-7C68-DECA-E1011F95544D}</Project> <Name>Unity.Postprocessing.Editor</Name> </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -1,5 +1,6 @@
fileFormatVersion: 2
guid: 9fc0d4010bbf28b4594072e72b8655ab
guid: 049d6288719395d47bf40b9fd89d7025
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

View File

@ -0,0 +1,88 @@
fileFormatVersion: 2
guid: 2adbe2e5f92dee24d856c2302b33eba2
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 1
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
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
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: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,88 @@
fileFormatVersion: 2
guid: f013e9f338f9bd643b2b282b15145c6b
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 1
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
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
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: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

View File

@ -0,0 +1,88 @@
fileFormatVersion: 2
guid: 300207f20044bb74388b765564cbf884
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 1
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
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
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: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

Binary file not shown.

View File

@ -1,311 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 705507994}
m_IndirectSpecularColor: {r: 0.44657838, g: 0.49641234, b: 0.57481676, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 2
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 3
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
buildHeightMesh: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &705507993
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 705507995}
- component: {fileID: 705507994}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &705507994
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 705507993}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.802082
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 1
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &705507995
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 705507993}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &963194225
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 963194228}
- component: {fileID: 963194227}
- component: {fileID: 963194226}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &963194226
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_Enabled: 1
--- !u!20 &963194227
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_Iso: 200
m_ShutterSpeed: 0.005
m_Aperture: 16
m_FocusDistance: 10
m_FocalLength: 50
m_BladeCount: 5
m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25
m_Anamorphism: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &963194228
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

View File

@ -1,4 +1,4 @@
sing System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -15,7 +15,7 @@ public class ActorController : ResourceController, IInteraction
public void DisableSelf()
{
// 启用人物控制器
// 启用人物控制器
GameManager.Instance.PlayerManager.Enable = true;
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}

View File

@ -15,9 +15,9 @@ public class PlayerController : ActorController
{
base.Awake();
// 绑定玩家控制器
// 绑定玩家控制器
GameManager.Instance.PlayerManager.BindPlayer(this);
// 绑定输入事件
// 绑定输入事件
GameManager.Instance.EventManager.OnMoveInput = OnMoveInputEvent;
rigidbody2d = GetComponent<Rigidbody2D>();
@ -35,38 +35,38 @@ public class PlayerController : ActorController
private void OnTriggerEnter2D(Collider2D collision)
{
// 捡东西
// 捡东西
if (collision.CompareTag("Item"))
{
// 宝石自动使用
// 宝石自动使用
if (collision.GetComponent<ItemController>().ID == 7)
{
GameManager.Instance.PlayerManager.PlayerInfo.Attack += 3;
GameManager.Instance.UIManager.ShowInfo($"获得 {GameManager.Instance.ResourceManager.GetResourceInfo(EResourceType.Item, 7).Name} 1 个,增加 3 点攻击力。");
GameManager.Instance.UIManager.ShowInfo($"获得 {GameManager.Instance.ResourceManager.GetResourceInfo(EResourceType.Item, 7).Name} 1 个,增加 3 点攻击力。");
GameManager.Instance.PoolManager.RecycleResource(collision.gameObject);
GameManager.Instance.SoundManager.PlaySound(ESoundType.Effect, "PickUp");
}
else if (collision.GetComponent<ItemController>().ID == 8)
{
GameManager.Instance.PlayerManager.PlayerInfo.Defence += 3;
GameManager.Instance.UIManager.ShowInfo($"获得 {GameManager.Instance.ResourceManager.GetResourceInfo(EResourceType.Item, 8).Name} 1 个,增加 3 点防御力。");
GameManager.Instance.UIManager.ShowInfo($"获得 {GameManager.Instance.ResourceManager.GetResourceInfo(EResourceType.Item, 8).Name} 1 个,增加 3 点防御力。");
GameManager.Instance.PoolManager.RecycleResource(collision.gameObject);
GameManager.Instance.SoundManager.PlaySound(ESoundType.Effect, "PickUp");
}
else GameManager.Instance.BackpackManager.PickUp(collision.GetComponent<ItemController>());
}
// 打怪
// 打怪
else if (collision.CompareTag("Enemy")) GameManager.Instance.CombatManager.StartFight(collision.GetComponent<EnemyController>());
}
private void OnDestroy()
{
// 解绑输入事件
// 解绑输入事件
GameManager.Instance.PlayerManager.UnbindPlayer();
}
/// <summary>
/// 检测动画状态机
/// 检测动画状态机
/// </summary>
private void CheckAnimator()
{
@ -76,15 +76,15 @@ public class PlayerController : ActorController
}
/// <summary>
/// 获取角色输入
/// 获取角色输入
/// </summary>
/// <param name="inputType">输入类型</param>
/// <param name="inputType">输入类型</param>
private void OnMoveInputEvent(EDirectionType inputType)
{
if (walking || GameManager.Instance.CombatManager.Fighting) return;
// 状态赋值
// 状态赋值
direction = GameManager.Instance.CombatManager.Fighting ? direction : inputType;
// 尝试获取面前的物体
// 尝试获取面前的物体
Vector2 targetPoint = Vector2.zero;
switch (direction)
{
@ -105,10 +105,10 @@ public class PlayerController : ActorController
}
targetPoint += (Vector2)transform.position;
RaycastHit2D[] hits = Physics2D.RaycastAll(targetPoint, (targetPoint - (Vector2)transform.position), .1f);
// 如果有可交互的物体
// 如果有可交互的物体
if (hits.Length > 0)
{
// 筛选最上层可物体
// 筛选最上层可物体
int maxOrder = -100;
GameObject obj = null;
foreach (var hit in hits)
@ -121,16 +121,16 @@ public class PlayerController : ActorController
}
if (null != obj.GetComponent<IInteraction>())
{
// 进行交互 视情况停止移动
// 进行交互 视情况停止移动
if (!obj.GetComponent<IInteraction>().Interaction()) return;
}
}
// 匀速移动
// 匀速移动
StartCoroutine(Moving(transform.position, targetPoint));
}
/// <summary>
/// 移动
/// 移动
/// </summary>
IEnumerator Moving(Vector2 oldPoint, Vector2 newPoint)
{
@ -146,7 +146,7 @@ public class PlayerController : ActorController
yield return null;
}
walking = false;
// 移动完成后触发事件
// 移动完成后触发事件
GameManager.Instance.EventManager.OnPlayerArrive?.Invoke(newPoint);
}
}

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -9,61 +9,61 @@ public class BoneCaptainController : EnemyController, IInteraction, IExplosionpr
{
OnDeath += () =>
{
// 关闭人物控制器
// 关闭人物控制器
GameManager.Instance.PlayerManager.Enable = false;
// 锁定人物移动
// 锁定人物移动
GameManager.Instance.PlayerManager.LockEnable = true;
// 说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "不,不可能!!!", "我怎么会输?", "你别得意,后面还有许多强大的对手,你必死无疑!" }, () =>
// 说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "不,不可能!!!", "我怎么会输?", "你别得意,后面还有许多强大的对手,你必死无疑!" }, () =>
{
// 开门
// 开门
EnvironmentController ec = null;
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if (obj.GetComponent<MagicDoorController>() != null && (Vector2)obj.transform.position == new Vector2(0, -1)) ec = obj.GetComponent<EnvironmentController>();
});
ec.Open(null);
// 死亡时创建物品
// 死亡时创建物品
Vector2 point = new Vector2();
// 生成大血瓶
// 生成大血瓶
for (int i = 0; i < 3; i++)
{
point.Set(-5 + i, 2);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 6).transform.position = point;
}
// 生成红宝石
// 生成红宝石
for (int i = 0; i < 3; i++)
{
point.Set(-5 + i, 3);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 7).transform.position = point;
}
// 生成蓝宝石
// 生成蓝宝石
for (int i = 0; i < 3; i++)
{
point.Set(3 + i, 3);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 8).transform.position = point;
}
// 生成黄钥匙
// 生成黄钥匙
for (int i = 0; i < 3; i++)
{
point.Set(3 + i, 2);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 1).transform.position = point;
}
// 生成楼梯
// 生成楼梯
point.Set(0, -5);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Environment, 7).transform.position = point;
// 生成剧情地板
// 生成剧情地板
point.Set(0, -3);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Environment, 14).transform.position = point;
// 解锁人物移动
// 解锁人物移动
GameManager.Instance.PlayerManager.LockEnable = false;
// 打开人物控制器
// 打开人物控制器
GameManager.Instance.PlayerManager.Enable = true;
// 解锁音乐
// 解锁音乐
GameManager.Instance.SoundManager.LockEnable = false;
// 音频播放
// 音频播放
GameManager.Instance.SoundManager.PlaySound(ESoundType.Music, "LevelWin");
// 变更剧情状态
// 变更剧情状态
GameManager.Instance.PlotManager.PlotDictionary[4] = 5;
});
};
@ -73,14 +73,14 @@ public class BoneCaptainController : EnemyController, IInteraction, IExplosionpr
{
switch (GameManager.Instance.PlotManager.PlotDictionary[4])
{
// 状态 1 对话
// 状态 1 对话
case 3:
// 商人说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "竟然能逃出我设的陷阱?", "我是不会让你过去的,来决一死战吧!" }, () =>
// 商人说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "竟然能逃出我设的陷阱?", "我是不会让你过去的,来决一死战吧!" }, () =>
{
// 打开人物控制器
// 打开人物控制器
GameManager.Instance.PlayerManager.Enable = true;
// 变更剧情状态
// 变更剧情状态
GameManager.Instance.PlotManager.PlotDictionary[4] = 4;
});
break;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -72,7 +72,7 @@ public class DevilController : ExplosionproofController
// 音频播放
GameManager.Instance.SoundManager.PlaySound(ESoundType.Music, "GameOver");
// 勇士
GameManager.Instance.UIManager.ShowDialog("MrSunyner", new List<string> { "恭喜你顺利通关,此游戏为本人的第一个完整的游戏作品,制作比较简陋请谅解,感谢你的游玩,再见。" }, () =>
GameManager.Instance.UIManager.ShowDialog("MrSunyner", new List<string> { "恭喜你顺利通关,此游戏为本人的第一个完整的游戏作品,制作比较简陋请谅解,感谢你的游玩,再见。PS以上是保留前人留下的原话" }, () =>
{
// 回到主菜单
GameManager.Instance.BackHomeEvent();

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -10,42 +10,42 @@ public class VampireController : EnemyController
GameManager.Instance.EventManager.OnVampireShow?.Invoke();
OnDeath += () =>
{
// 说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "噢,上帝!我做梦也没想到自己会输给一个人类。", "虽然你获得了暂时的胜利,但对于大法师来说你还是太弱了。" }, () =>
// 说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "噢,上帝!我做梦也没想到自己会输给一个人类。", "虽然你获得了暂时的胜利,但对于大法师来说你还是太弱了。" }, () =>
{
// 死亡时创建物品
// 死亡时创建物品
Vector2 point = new Vector2();
// 生成大血瓶
// 生成大血瓶
for (int i = 0; i < 3; i++)
{
point.Set(-1 + i, -2);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 6).transform.position = point;
}
// 生成红宝石
// 生成红宝石
for (int i = 0; i < 3; i++)
{
point.Set(-2, 1 - i);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 7).transform.position = point;
}
// 生成蓝宝石
// 生成蓝宝石
for (int i = 0; i < 3; i++)
{
point.Set(2, 1 - i);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 8).transform.position = point;
}
// 生成黄钥匙
// 生成黄钥匙
for (int i = 0; i < 3; i++)
{
point.Set(-1 + i, 2);
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 1).transform.position = point;
}
// 改变剧情状态
// 改变剧情状态
GameManager.Instance.PlotManager.PlotDictionary[15] = 2;
// 打开人物控制器
// 打开人物控制器
GameManager.Instance.PlayerManager.Enable = true;
// 解锁音频播放
// 解锁音频播放
GameManager.Instance.SoundManager.LockEnable = false;
// 音频播放
// 音频播放
GameManager.Instance.SoundManager.PlaySound(ESoundType.Music, "LevelWin");
});
};

View File

@ -9,9 +9,9 @@ public class HideWallController : EnvironmentController
{
if (_opening) return false;
Open(() =>
{// 嬉蝕朔幹秀能謁
{// 打开后创建墙壁
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Environment, 6).transform.position = transform.position;
// 個延丞秤
// 改变剧情
if (GameManager.Instance.LevelManager.Level == 23) GameManager.Instance.PlotManager.PlotDictionary[7] += 1;
});
_opening = true;

View File

@ -26,18 +26,18 @@ public class IronDoorController : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
_guard1 = null;
_guard2 = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if ((Vector2)obj.transform.position == new Vector2(0, 4))
@ -60,7 +60,7 @@ public class IronDoorController : MonoBehaviour
}
/// <summary>
/// 检测门是否能打开
/// 检测门是否能打开
/// </summary>
private void DetectionOpen()
{

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -9,7 +9,7 @@ public class MagicController : EnvironmentController
{
base.OnDisable();
GameManager.Instance.PlayerManager.Enable = false;
// ÒôƵ²¥·Å
// 音频播放
GameManager.Instance.SoundManager.PlaySound(ESoundType.Effect, "Magic");
}

View File

@ -24,13 +24,13 @@ public class MagicDoorController : MonoBehaviour
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
_guard1 = null;
_guard2 = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if ((Vector2)obj.transform.position == new Vector2(transform.position.x - 1, transform.position.y - 1))
@ -53,7 +53,7 @@ public class MagicDoorController : MonoBehaviour
}
/// <summary>
/// 检测门是否能打开
/// 检测门是否能打开
/// </summary>
private void DetectionOpen()
{

View File

@ -25,17 +25,17 @@ public class MagicDoorDragonController : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
_dragon = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if ((Vector2)obj.transform.position == (Vector2)transform.position + Vector2.down * 3)

View File

@ -25,17 +25,17 @@ public class MagicDoorOctopusController : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
_octupus = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if ((Vector2)obj.transform.position == new Vector2(0, 1))

View File

@ -26,18 +26,18 @@ public class MagicDoorRightOpenController : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
_guard1 = null;
_guard2 = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if ((Vector2)obj.transform.position == new Vector2(transform.position.x + 1, transform.position.y + 1))
@ -60,7 +60,7 @@ public class MagicDoorRightOpenController : MonoBehaviour
}
/// <summary>
/// 检测门是否能打开
/// 检测门是否能打开
/// </summary>
private void DetectionOpen()
{

View File

@ -35,12 +35,12 @@ public class MagicDoorSlimeController : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
@ -50,7 +50,7 @@ public class MagicDoorSlimeController : MonoBehaviour
_guard4 = null;
_guard5 = null;
_guard6 = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if ((Vector2)obj.transform.position == new Vector2(transform.position.x - 1, transform.position.y - 1))
@ -105,7 +105,7 @@ public class MagicDoorSlimeController : MonoBehaviour
}
/// <summary>
/// 检测门是否能打开
/// 检测门是否能打开
/// </summary>
private void DetectionOpen()
{

View File

@ -23,12 +23,12 @@ public class MagicDoorSwardmanController : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
@ -36,7 +36,7 @@ public class MagicDoorSwardmanController : MonoBehaviour
_guard2 = null;
_guard3 = null;
_guard4 = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if ((Vector2)obj.transform.position == new Vector2(3, 1))
@ -76,7 +76,7 @@ public class MagicDoorSwardmanController : MonoBehaviour
}
/// <summary>
/// 检测门是否能打开
/// 检测门是否能打开
/// </summary>
private void DetectionOpen()
{

View File

@ -25,12 +25,12 @@ public class MagicDoorVampireController : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
@ -40,7 +40,7 @@ public class MagicDoorVampireController : MonoBehaviour
IEnumerator GetGuard()
{
_vampire = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
while(null == _vampire)
{
GameManager.Instance.PoolManager.UseList.ForEach(obj =>

View File

@ -32,19 +32,19 @@ public class SpecialWallController1 : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
_guard1 = null;
_guard2 = null;
_guard3 = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
GameManager.Instance.PoolManager.UseList.ForEach(obj =>
{
if ((Vector2)obj.transform.position == new Vector2(transform.position.x + 1, transform.position.y + 1))
@ -75,7 +75,7 @@ public class SpecialWallController1 : MonoBehaviour
}
/// <summary>
/// 检测门是否能打开
/// 检测门是否能打开
/// </summary>
private void DetectionOpen()
{

View File

@ -32,12 +32,12 @@ public class SpecialWallController2 : MonoBehaviour
public void RecycleSelf()
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
/// <summary>
/// 获取守卫事件
/// 获取守卫事件
/// </summary>
private void GetGuardEvent()
{
@ -49,7 +49,7 @@ public class SpecialWallController2 : MonoBehaviour
_guard6 = null;
_guard7 = null;
_guard8 = null;
// 从已使用物体列表中按位置获取物体
// 从已使用物体列表中按位置获取物体
Vector2[] points = new Vector2[] {
new Vector2(-1, 2),
new Vector2(1,2),
@ -130,21 +130,21 @@ public class SpecialWallController2 : MonoBehaviour
}
/// <summary>
/// 检测门是否能打开
/// 检测门是否能打开
/// </summary>
private void DetectionOpen()
{
if (_guard1 == null && _guard2 == null && _guard3 == null && _guard4 == null && _guard5 == null && _guard6 == null && _guard7 == null && _guard8 == null)
{
_animator.SetTrigger("open");
// 生成黄钥匙
// 生成黄钥匙
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 1).transform.position = (Vector2)transform.position + Vector2.up + Vector2.left;
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 1).transform.position = (Vector2)transform.position + Vector2.up + Vector2.right;
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 1).transform.position = (Vector2)transform.position + Vector2.down + Vector2.left;
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 1).transform.position = (Vector2)transform.position + Vector2.down + Vector2.right;
// 生成红钥匙
// 生成红钥匙
GameManager.Instance.PoolManager.GetResourceInFreePool(EResourceType.Item, 3).transform.position = transform.position;
// 回收物体
// 回收物体
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
}

View File

@ -17,12 +17,12 @@ public class SpecialWallController3 : MonoBehaviour
private void OnLoaded()
{
// 人物到达 35 层 剧情状态 1
// 人物到达 35 层 剧情状态 1
if (GameManager.Instance.PlotManager.PlotDictionary[9] == 1)
{
// 生成 2 楼小偷
// 生成 2 楼小偷
GameManager.Instance.ResourceManager.MakeResourceForLevel(2, EResourceType.Actor, 30, new Vector2(4, -5));
// 改变剧情状态
// 改变剧情状态
GameManager.Instance.PlotManager.PlotDictionary[9] = 2;
}
else if (GameManager.Instance.PlotManager.PlotDictionary[9] == 2)
@ -31,7 +31,7 @@ public class SpecialWallController3 : MonoBehaviour
}
else
{
// 回收资源
// 回收资源
GameManager.Instance.PoolManager.RecycleResource(gameObject);
}
}

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -22,27 +22,27 @@ public class HomeCanvasController : MonoBehaviour
}
/// <summary>
/// 新游戏
/// 新游戏
/// </summary>
public void NewGameEvent()
{
// 设置标识符
// 设置标识符
PlayerPrefs.SetInt("NewGame", 1);
// 加载场景
// 加载场景
SceneManager.LoadScene("Level");
}
/// <summary>
/// 加载游戏
/// 加载游戏
/// </summary>
public void LoadGameEvent()
{
// 加载游戏存档
// 加载游戏存档
if (ResourceManager.Instance.GetGameArchiveStatus()) SceneManager.LoadScene("Level");
}
/// <summary>
/// 退出游戏
/// 退出游戏
/// </summary>
public void ExitGameEvent()
{

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

View File

@ -1,4 +1,4 @@
//using OfficeOpenXml;
//using OfficeOpenXml;
//using System.Collections;
//using System.Collections.Generic;
//using System.IO;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -7,18 +7,18 @@ public class EventLevel2Actor2 : ActorController
{
public override bool Interaction()
{
// 小偷说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "哈哈,我们真是有缘。", "谢谢你救了我。", "我会在魔龙旁边开一条暗道,去 35 层找我吧。" }, () =>
// 小偷说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "哈哈,我们真是有缘。", "谢谢你救了我。", "我会在魔龙旁边开一条暗道,去 35 层找我吧。" }, () =>
{
// 生成 35 楼小偷
// 生成 35 楼小偷
GameManager.Instance.ResourceManager.MakeResourceForLevel(35, EResourceType.Actor, 31, new Vector2(-1, -4));
// 改变剧情
// 改变剧情
GameManager.Instance.PlotManager.PlotDictionary[9] = 3;
// 音频播放
// 音频播放
GameManager.Instance.SoundManager.PlaySound(ESoundType.Music, "1-9");
// 打开人物控制器
// 打开人物控制器
GameManager.Instance.PlayerManager.Enable = true;
// NPC 回收
// NPC 回收
GameManager.Instance.PoolManager.RecycleResource(gameObject);
});
return false;

View File

@ -7,18 +7,18 @@ public class EventLevel2Actor3 : ActorController
{
public override bool Interaction()
{
// 老头说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "感谢你救了我,这 1000 金币务必收下。" }, () =>
// 老头说话
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "感谢你救了我,这 1000 金币务必收下。" }, () =>
{
// 获得金币
// 获得金币
GameManager.Instance.PlayerManager.PlayerInfo.Gold += 1000;
// 提示信息
GameManager.Instance.UIManager.ShowInfo("获得 1000 金币。");
// 音频播放
// 提示信息
GameManager.Instance.UIManager.ShowInfo("获得 1000 金币。");
// 音频播放
GameManager.Instance.SoundManager.PlaySound(ESoundType.Music, "1-9");
// 打开人物控制器
// 打开人物控制器
GameManager.Instance.PlayerManager.Enable = true;
// NPC 回收
// NPC 回收
GameManager.Instance.PoolManager.RecycleResource(gameObject);
});
return false;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

Some files were not shown because too many files have changed in this diff Show More