Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7912604faf | ||
|
|
d71b90c8bd | ||
|
|
5b888fba95 | ||
|
|
e3d5561fc8 |
@@ -39,7 +39,6 @@ Material:
|
|||||||
disabledShaderPasses:
|
disabledShaderPasses:
|
||||||
- MOTIONVECTORS
|
- MOTIONVECTORS
|
||||||
- DepthOnly
|
- DepthOnly
|
||||||
- SHADOWCASTER
|
|
||||||
m_LockedProperties:
|
m_LockedProperties:
|
||||||
m_SavedProperties:
|
m_SavedProperties:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
@@ -69,7 +68,7 @@ Material:
|
|||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MainTex:
|
- _MainTex:
|
||||||
m_Texture: {fileID: 2800000, guid: a75118087a5b8ea41a9f58ce5debb2d2, type: 3}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MetallicGlossMap:
|
- _MetallicGlossMap:
|
||||||
@@ -137,7 +136,7 @@ Material:
|
|||||||
- _ZWrite: 0
|
- _ZWrite: 0
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0, g: 0, b: 0, a: 1}
|
- _BaseColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _Color: {r: 0, g: 0, b: 0, a: 1}
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _EmissionColor: {r: 0.9705882, g: 0.947554, b: 0.9063581, a: 1}
|
- _EmissionColor: {r: 0.9705882, g: 0.947554, b: 0.9063581, a: 1}
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ Material:
|
|||||||
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
|
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
|
||||||
m_Parent: {fileID: 0}
|
m_Parent: {fileID: 0}
|
||||||
m_ModifiedSerializedProperties: 0
|
m_ModifiedSerializedProperties: 0
|
||||||
m_ValidKeywords: []
|
m_ValidKeywords:
|
||||||
|
- _GLOSSINESS_FROM_BASE_ALPHA
|
||||||
|
- _SPECULAR_COLOR
|
||||||
m_InvalidKeywords: []
|
m_InvalidKeywords: []
|
||||||
m_LightmapFlags: 4
|
m_LightmapFlags: 4
|
||||||
m_EnableInstancingVariants: 0
|
m_EnableInstancingVariants: 0
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ Material:
|
|||||||
m_Parent: {fileID: 0}
|
m_Parent: {fileID: 0}
|
||||||
m_ModifiedSerializedProperties: 0
|
m_ModifiedSerializedProperties: 0
|
||||||
m_ValidKeywords:
|
m_ValidKeywords:
|
||||||
- _ENVIRONMENTREFLECTIONS_OFF
|
|
||||||
- _SPECULARHIGHLIGHTS_OFF
|
- _SPECULARHIGHLIGHTS_OFF
|
||||||
m_InvalidKeywords:
|
m_InvalidKeywords:
|
||||||
- _GLOSSYREFLECTIONS_OFF
|
- _GLOSSYREFLECTIONS_OFF
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ Material:
|
|||||||
m_Parent: {fileID: 0}
|
m_Parent: {fileID: 0}
|
||||||
m_ModifiedSerializedProperties: 0
|
m_ModifiedSerializedProperties: 0
|
||||||
m_ValidKeywords:
|
m_ValidKeywords:
|
||||||
- _ENVIRONMENTREFLECTIONS_OFF
|
|
||||||
- _SPECULARHIGHLIGHTS_OFF
|
- _SPECULARHIGHLIGHTS_OFF
|
||||||
m_InvalidKeywords:
|
m_InvalidKeywords:
|
||||||
- _GLOSSYREFLECTIONS_OFF
|
- _GLOSSYREFLECTIONS_OFF
|
||||||
@@ -53,7 +52,7 @@ Material:
|
|||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MainTex:
|
- _MainTex:
|
||||||
m_Texture: {fileID: 2800000, guid: 4a3ea3eb16909a646a66ff7b19d31788, type: 3}
|
m_Texture: {fileID: 0}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MetallicGlossMap:
|
- _MetallicGlossMap:
|
||||||
|
|||||||
@@ -15,11 +15,7 @@ MonoBehaviour:
|
|||||||
modifiedAssetPathList:
|
modifiedAssetPathList:
|
||||||
- Assets/Bakery/examples/content/sponza/sponza.FBX
|
- Assets/Bakery/examples/content/sponza/sponza.FBX
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock2.fbx
|
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock2.fbx
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock1A.fbx
|
modifiedAssetPaddingHash: d6a958ff333fd3d9
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock5A.fbx
|
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock3.fbx
|
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock4A.fbx
|
|
||||||
modifiedAssetPaddingHash: d6a958ff333fd3d9343fd3d9353fd3d93e3fd3d94adc894b
|
|
||||||
modifiedMeshList: []
|
modifiedMeshList: []
|
||||||
modifiedMeshPaddingList:
|
modifiedMeshPaddingList:
|
||||||
modifiedAssets:
|
modifiedAssets:
|
||||||
@@ -406,22 +402,6 @@ MonoBehaviour:
|
|||||||
- Rock2E_LP:polySurface1
|
- Rock2E_LP:polySurface1
|
||||||
padding: 04000000
|
padding: 04000000
|
||||||
unwrapper: 00000000
|
unwrapper: 00000000
|
||||||
- meshName:
|
|
||||||
- Rock1_LP:polySurface1
|
|
||||||
padding: 07000000
|
|
||||||
unwrapper: 00000000
|
|
||||||
- meshName:
|
|
||||||
- polySurface250
|
|
||||||
padding: 06000000
|
|
||||||
unwrapper: 00000000
|
|
||||||
- meshName:
|
|
||||||
- Rock3_LP_smooth:polySurface1
|
|
||||||
padding: 09000000
|
|
||||||
unwrapper: 00000000
|
|
||||||
- meshName:
|
|
||||||
- polySurface115
|
|
||||||
padding: 10000000
|
|
||||||
unwrapper: 00000000
|
|
||||||
assetList:
|
assetList:
|
||||||
- Assets/Bakery/examples/content/sponza/bush.FBX
|
- Assets/Bakery/examples/content/sponza/bush.FBX
|
||||||
- Assets/Bakery/examples/content/floor_lamp.FBX
|
- Assets/Bakery/examples/content/floor_lamp.FBX
|
||||||
@@ -429,10 +409,7 @@ MonoBehaviour:
|
|||||||
- Assets/Objects/Boxes and pallets/Res/Boxes.fbx
|
- Assets/Objects/Boxes and pallets/Res/Boxes.fbx
|
||||||
- Assets/Objects/Boxes and pallets/Res/Pallet.fbx
|
- Assets/Objects/Boxes and pallets/Res/Pallet.fbx
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/box.fbx
|
- Assets/Rocks and Boulders 2/Rocks/Source/Models/box.fbx
|
||||||
- Assets/Bitgem/StylisedWater/URP/Meshes/example-scene-01.fbx
|
uvOverlapAssetList: 00000000ffffffff01010000010100000101000000000000
|
||||||
- Assets/Fill.obj
|
|
||||||
- Assets/CONTENT/ART/tripo_convert_afbded3b-3351-4484-9604-f5a846a051d2.fbx
|
|
||||||
uvOverlapAssetList: 00000000ffffffff01010000010100000101000000000000000000000000000000000000
|
|
||||||
xatlasWarningShown: 0
|
xatlasWarningShown: 0
|
||||||
foundCompatibleSetup: 1
|
foundCompatibleSetup: 1
|
||||||
gpuName_2: NVIDIA GeForce RTX 5080
|
gpuName_2: NVIDIA GeForce RTX 5080
|
||||||
@@ -534,5 +511,5 @@ MonoBehaviour:
|
|||||||
renderSettingsRTPVExposure: 1
|
renderSettingsRTPVExposure: 1
|
||||||
renderSettingsRemoveDuplicateLightmaps: 0
|
renderSettingsRemoveDuplicateLightmaps: 0
|
||||||
tagOverrides: []
|
tagOverrides: []
|
||||||
modifiedMeshPaddingArray: 10000000
|
modifiedMeshPaddingArray: 04000000
|
||||||
modifiedMeshUnwrapperArray: 00000000
|
modifiedMeshUnwrapperArray: 00000000
|
||||||
|
|||||||
@@ -15,8 +15,4 @@ MonoBehaviour:
|
|||||||
modifiedAssetPathList:
|
modifiedAssetPathList:
|
||||||
- Assets/Bakery/examples/content/sponza/sponza.FBX
|
- Assets/Bakery/examples/content/sponza/sponza.FBX
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock2.fbx
|
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock2.fbx
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock1A.fbx
|
modifiedAssetPaddingHash: d6a958ff333fd3d9
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock5A.fbx
|
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock3.fbx
|
|
||||||
- Assets/Rocks and Boulders 2/Rocks/Source/Models/Rock4A.fbx
|
|
||||||
modifiedAssetPaddingHash: d6a958ff333fd3d9343fd3d9353fd3d93e3fd3d94adc894b
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,130 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: ade59780048e71b4aa6efea78558a5ea
|
|
||||||
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: 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: 0
|
|
||||||
alphaIsTransparency: 0
|
|
||||||
spriteTessellationDetail: -1
|
|
||||||
textureType: 6
|
|
||||||
textureShape: 1
|
|
||||||
singleChannelComponent: 0
|
|
||||||
flipbookRows: 1
|
|
||||||
flipbookColumns: 1
|
|
||||||
maxTextureSizeSet: 0
|
|
||||||
compressionQualitySet: 0
|
|
||||||
textureFormatSet: 0
|
|
||||||
ignorePngGamma: 0
|
|
||||||
applyGammaDecoding: 0
|
|
||||||
swizzle: 50462976
|
|
||||||
cookieLightType: 0
|
|
||||||
platformSettings:
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 1024
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Android
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID:
|
|
||||||
internalID: 0
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: afda85841890d5948bdf27e9b18b36eb
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,222 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: fa03336b0a46f304483077f85309749c
|
|
||||||
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: 2
|
|
||||||
spriteExtrude: 1
|
|
||||||
spriteMeshType: 1
|
|
||||||
alignment: 0
|
|
||||||
spritePivot: {x: 0.5, y: 0.5}
|
|
||||||
spritePixelsToUnits: 100
|
|
||||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
spriteGenerateFallbackPhysicsShape: 1
|
|
||||||
alphaUsage: 1
|
|
||||||
alphaIsTransparency: 1
|
|
||||||
spriteTessellationDetail: -1
|
|
||||||
textureType: 8
|
|
||||||
textureShape: 1
|
|
||||||
singleChannelComponent: 0
|
|
||||||
flipbookRows: 1
|
|
||||||
flipbookColumns: 1
|
|
||||||
maxTextureSizeSet: 0
|
|
||||||
compressionQualitySet: 0
|
|
||||||
textureFormatSet: 0
|
|
||||||
ignorePngGamma: 0
|
|
||||||
applyGammaDecoding: 0
|
|
||||||
swizzle: 50462976
|
|
||||||
cookieLightType: 0
|
|
||||||
platformSettings:
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Android
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites:
|
|
||||||
- serializedVersion: 2
|
|
||||||
name: Group 3_0
|
|
||||||
rect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 18
|
|
||||||
y: 13
|
|
||||||
width: 62
|
|
||||||
height: 96
|
|
||||||
alignment: 0
|
|
||||||
pivot: {x: 0, y: 0}
|
|
||||||
border: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
customData:
|
|
||||||
outline: []
|
|
||||||
physicsShape: []
|
|
||||||
tessellationDetail: 0
|
|
||||||
bones: []
|
|
||||||
spriteID: d6939717bcacd5a4e8b7ff689d4a9b0e
|
|
||||||
internalID: -120519267
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
- serializedVersion: 2
|
|
||||||
name: Group 3_1
|
|
||||||
rect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 113
|
|
||||||
y: 5
|
|
||||||
width: 60
|
|
||||||
height: 113
|
|
||||||
alignment: 0
|
|
||||||
pivot: {x: 0, y: 0}
|
|
||||||
border: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
customData:
|
|
||||||
outline: []
|
|
||||||
physicsShape: []
|
|
||||||
tessellationDetail: 0
|
|
||||||
bones: []
|
|
||||||
spriteID: 1bcce9c987b749145bc2407a3982791a
|
|
||||||
internalID: -733085833
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
- serializedVersion: 2
|
|
||||||
name: Group 3_2
|
|
||||||
rect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 185
|
|
||||||
y: 4
|
|
||||||
width: 77
|
|
||||||
height: 112
|
|
||||||
alignment: 0
|
|
||||||
pivot: {x: 0, y: 0}
|
|
||||||
border: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
customData:
|
|
||||||
outline: []
|
|
||||||
physicsShape: []
|
|
||||||
tessellationDetail: 0
|
|
||||||
bones: []
|
|
||||||
spriteID: a95544add49c3a5429158f0e6552a4fa
|
|
||||||
internalID: 1344260059
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
- serializedVersion: 2
|
|
||||||
name: Group 3_3
|
|
||||||
rect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 273
|
|
||||||
y: 4
|
|
||||||
width: 66
|
|
||||||
height: 111
|
|
||||||
alignment: 0
|
|
||||||
pivot: {x: 0, y: 0}
|
|
||||||
border: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
customData:
|
|
||||||
outline: []
|
|
||||||
physicsShape: []
|
|
||||||
tessellationDetail: 0
|
|
||||||
bones: []
|
|
||||||
spriteID: 60b06cd03a7f92c4697dcc15858b1b90
|
|
||||||
internalID: 1722157387
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID: 5e97eb03825dee720800000000000000
|
|
||||||
internalID: 0
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable:
|
|
||||||
Group 3_0: -120519267
|
|
||||||
Group 3_1: -733085833
|
|
||||||
Group 3_2: 1344260059
|
|
||||||
Group 3_3: 1722157387
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,130 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 926590dcd0bce8e4698fd51aa91b4a74
|
|
||||||
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: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Android
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID: 5e97eb03825dee720800000000000000
|
|
||||||
internalID: 0
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,130 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: fba7f80db8855ce4cac9f8d14c3a995c
|
|
||||||
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: 2
|
|
||||||
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: 10, y: 10, z: 10, w: 10}
|
|
||||||
spriteGenerateFallbackPhysicsShape: 1
|
|
||||||
alphaUsage: 1
|
|
||||||
alphaIsTransparency: 1
|
|
||||||
spriteTessellationDetail: -1
|
|
||||||
textureType: 8
|
|
||||||
textureShape: 1
|
|
||||||
singleChannelComponent: 0
|
|
||||||
flipbookRows: 1
|
|
||||||
flipbookColumns: 1
|
|
||||||
maxTextureSizeSet: 0
|
|
||||||
compressionQualitySet: 0
|
|
||||||
textureFormatSet: 0
|
|
||||||
ignorePngGamma: 0
|
|
||||||
applyGammaDecoding: 0
|
|
||||||
swizzle: 50462976
|
|
||||||
cookieLightType: 0
|
|
||||||
platformSettings:
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 1
|
|
||||||
textureFormat: 4
|
|
||||||
textureCompression: 2
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Android
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID: 5e97eb03825dee720800000000000000
|
|
||||||
internalID: 1537655665
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,130 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: bc012667b957a98468907faa7f183227
|
|
||||||
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: 2
|
|
||||||
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: 10, y: 10, z: 10, w: 10}
|
|
||||||
spriteGenerateFallbackPhysicsShape: 1
|
|
||||||
alphaUsage: 1
|
|
||||||
alphaIsTransparency: 1
|
|
||||||
spriteTessellationDetail: -1
|
|
||||||
textureType: 8
|
|
||||||
textureShape: 1
|
|
||||||
singleChannelComponent: 0
|
|
||||||
flipbookRows: 1
|
|
||||||
flipbookColumns: 1
|
|
||||||
maxTextureSizeSet: 0
|
|
||||||
compressionQualitySet: 0
|
|
||||||
textureFormatSet: 0
|
|
||||||
ignorePngGamma: 0
|
|
||||||
applyGammaDecoding: 0
|
|
||||||
swizzle: 50462976
|
|
||||||
cookieLightType: 0
|
|
||||||
platformSettings:
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 1
|
|
||||||
textureFormat: 4
|
|
||||||
textureCompression: 2
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Android
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID: 5e97eb03825dee720800000000000000
|
|
||||||
internalID: 1537655665
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,130 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6dd4cb0e55ca3454e81b5886619750e6
|
|
||||||
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: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Android
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID: 5e97eb03825dee720800000000000000
|
|
||||||
internalID: 0
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,130 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 11a7500f3885deb4f995353fb4d9ae76
|
|
||||||
TextureImporter:
|
|
||||||
internalIDToNameTable: []
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 13
|
|
||||||
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
|
|
||||||
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: 0
|
|
||||||
wrapV: 0
|
|
||||||
wrapW: 0
|
|
||||||
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
|
|
||||||
flipbookRows: 1
|
|
||||||
flipbookColumns: 1
|
|
||||||
maxTextureSizeSet: 0
|
|
||||||
compressionQualitySet: 0
|
|
||||||
textureFormatSet: 0
|
|
||||||
ignorePngGamma: 0
|
|
||||||
applyGammaDecoding: 0
|
|
||||||
swizzle: 50462976
|
|
||||||
cookieLightType: 0
|
|
||||||
platformSettings:
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Android
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID:
|
|
||||||
internalID: 0
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,107 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 0418ebccddcd3204aa042b0fb09ea84e
|
|
||||||
ModelImporter:
|
|
||||||
serializedVersion: 22200
|
|
||||||
internalIDToNameTable: []
|
|
||||||
externalObjects: {}
|
|
||||||
materials:
|
|
||||||
materialImportMode: 2
|
|
||||||
materialName: 0
|
|
||||||
materialSearch: 1
|
|
||||||
materialLocation: 1
|
|
||||||
animations:
|
|
||||||
legacyGenerateAnimations: 4
|
|
||||||
bakeSimulation: 0
|
|
||||||
resampleCurves: 1
|
|
||||||
optimizeGameObjects: 0
|
|
||||||
removeConstantScaleCurves: 0
|
|
||||||
motionNodeName:
|
|
||||||
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: 0
|
|
||||||
meshes:
|
|
||||||
lODScreenPercentages: []
|
|
||||||
globalScale: 1
|
|
||||||
meshCompression: 0
|
|
||||||
addColliders: 0
|
|
||||||
useSRGBMaterialColor: 1
|
|
||||||
sortHierarchyByName: 1
|
|
||||||
importPhysicalCameras: 1
|
|
||||||
importVisibility: 1
|
|
||||||
importBlendShapes: 1
|
|
||||||
importCameras: 1
|
|
||||||
importLights: 1
|
|
||||||
nodeNameCollisionStrategy: 1
|
|
||||||
fileIdsGeneration: 2
|
|
||||||
swapUVChannels: 0
|
|
||||||
generateSecondaryUV: 0
|
|
||||||
useFileUnits: 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: 1
|
|
||||||
secondaryUVMinLightmapResolution: 40
|
|
||||||
secondaryUVMinObjectScale: 1
|
|
||||||
secondaryUVPackMargin: 4
|
|
||||||
useFileScale: 1
|
|
||||||
strictVertexDataChecks: 0
|
|
||||||
tangentSpace:
|
|
||||||
normalSmoothAngle: 60
|
|
||||||
normalImportMode: 0
|
|
||||||
tangentImportMode: 3
|
|
||||||
normalCalculationMode: 4
|
|
||||||
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
|
||||||
blendShapeNormalImportMode: 1
|
|
||||||
normalSmoothingSource: 0
|
|
||||||
referencedClips: []
|
|
||||||
importAnimation: 1
|
|
||||||
humanDescription:
|
|
||||||
serializedVersion: 3
|
|
||||||
human: []
|
|
||||||
skeleton: []
|
|
||||||
armTwist: 0.5
|
|
||||||
foreArmTwist: 0.5
|
|
||||||
upperLegTwist: 0.5
|
|
||||||
legTwist: 0.5
|
|
||||||
armStretch: 0.05
|
|
||||||
legStretch: 0.05
|
|
||||||
feetSpacing: 0
|
|
||||||
globalScale: 1
|
|
||||||
rootMotionBoneName:
|
|
||||||
hasTranslationDoF: 0
|
|
||||||
hasExtraRoot: 0
|
|
||||||
skeletonHasParents: 1
|
|
||||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
|
||||||
autoGenerateAvatarMappingIfUnspecified: 1
|
|
||||||
animationType: 2
|
|
||||||
humanoidOversampling: 1
|
|
||||||
avatarSetup: 0
|
|
||||||
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
|
||||||
importBlendShapeDeformPercent: 1
|
|
||||||
remapMaterialsIfMaterialImportModeIsNone: 0
|
|
||||||
additionalBone: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 5da4c81b147b7544e9cb44f942ad51f0
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
|
||||||
public sealed class AirTarget : MapTarget
|
|
||||||
{
|
|
||||||
protected override void TickMovement(float deltaTime)
|
|
||||||
{
|
|
||||||
if (Player == null || Config == null || Config.MovementSpeed <= 0f)
|
|
||||||
return;
|
|
||||||
|
|
||||||
Vector2 playerCoordinates = Player.MapCoordinates;
|
|
||||||
if (Vector2.Distance(MapCoordinates, playerCoordinates) <= Config.StoppingDistance)
|
|
||||||
return;
|
|
||||||
|
|
||||||
Vector2 nextCoordinates = Vector2.MoveTowards(
|
|
||||||
MapCoordinates,
|
|
||||||
playerCoordinates,
|
|
||||||
Config.MovementSpeed * deltaTime);
|
|
||||||
SetMapCoordinates(nextCoordinates);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d5316cf7562b473d9513878ea906a1b2
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 91a48705d8024711b1d912580a4c8bca
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: c4e7ec8e55a847eaa5c7914bf08d1f98, type: 3}
|
|
||||||
m_Name: AirTargetConfig
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::TargetConfig
|
|
||||||
targetPrefab: {fileID: 878491239745611204, guid: 7ef28d9e428a4b94ab7ea4f36fd44d9c, type: 3}
|
|
||||||
timeBeforeAttack: 30
|
|
||||||
health: 2
|
|
||||||
requiredMissileType: 2
|
|
||||||
movementSpeed: 0.05
|
|
||||||
stoppingDistance: 0.25
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e454536a6e36466c92a7cc8b5650d081
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: c4e7ec8e55a847eaa5c7914bf08d1f98, type: 3}
|
|
||||||
m_Name: GroundTargetConfig
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::TargetConfig
|
|
||||||
targetPrefab: {fileID: 878491239745611204, guid: 985d88cac4b4daa48973a1a464a3d4e5, type: 3}
|
|
||||||
timeBeforeAttack: 50
|
|
||||||
health: 5
|
|
||||||
requiredMissileType: 3
|
|
||||||
movementSpeed: 0
|
|
||||||
stoppingDistance: 0.25
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 35ee36b62afb47cd817570f494b93eae
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6bc910aee46640ce911e111e1b7376b2
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,167 +0,0 @@
|
|||||||
using UnityEditor;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[CustomEditor(typeof(MapCoordinateSystem))]
|
|
||||||
public sealed class MapCoordinateSystemEditor : Editor
|
|
||||||
{
|
|
||||||
public override void OnInspectorGUI()
|
|
||||||
{
|
|
||||||
DrawDefaultInspector();
|
|
||||||
EditorGUILayout.HelpBox(
|
|
||||||
"Select MapCoordinates to display its grid and live crosshair coordinates in the Scene view. " +
|
|
||||||
"This visualization is not rendered in the Game view or in builds.",
|
|
||||||
MessageType.Info);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSceneGUI()
|
|
||||||
{
|
|
||||||
MapCoordinateSystem coordinateSystem = (MapCoordinateSystem)target;
|
|
||||||
if (!coordinateSystem.ShowSceneVisualization || !coordinateSystem.HasValidCorners())
|
|
||||||
return;
|
|
||||||
|
|
||||||
DrawGrid(coordinateSystem);
|
|
||||||
DrawCorners(coordinateSystem);
|
|
||||||
DrawCrosshairs(coordinateSystem);
|
|
||||||
DrawTargets(coordinateSystem);
|
|
||||||
DrawPlayers(coordinateSystem);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawGrid(MapCoordinateSystem coordinateSystem)
|
|
||||||
{
|
|
||||||
int divisions = coordinateSystem.GridDivisions;
|
|
||||||
GUIStyle labelStyle = CreateLabelStyle(coordinateSystem.BoundaryColor);
|
|
||||||
|
|
||||||
for (int index = 0; index <= divisions; index++)
|
|
||||||
{
|
|
||||||
float normalized = (float)index / divisions;
|
|
||||||
|
|
||||||
Vector3 verticalStart = Vector3.Lerp(
|
|
||||||
coordinateSystem.BottomLeft.position,
|
|
||||||
coordinateSystem.BottomRight.position,
|
|
||||||
normalized);
|
|
||||||
Vector3 verticalEnd = Vector3.Lerp(
|
|
||||||
coordinateSystem.TopLeft.position,
|
|
||||||
coordinateSystem.TopRight.position,
|
|
||||||
normalized);
|
|
||||||
Vector3 horizontalStart = Vector3.Lerp(
|
|
||||||
coordinateSystem.BottomLeft.position,
|
|
||||||
coordinateSystem.TopLeft.position,
|
|
||||||
normalized);
|
|
||||||
Vector3 horizontalEnd = Vector3.Lerp(
|
|
||||||
coordinateSystem.BottomRight.position,
|
|
||||||
coordinateSystem.TopRight.position,
|
|
||||||
normalized);
|
|
||||||
|
|
||||||
bool isBoundary = index == 0 || index == divisions;
|
|
||||||
Handles.color = isBoundary ? coordinateSystem.BoundaryColor : coordinateSystem.GridColor;
|
|
||||||
Handles.DrawLine(verticalStart, verticalEnd);
|
|
||||||
Handles.DrawLine(horizontalStart, horizontalEnd);
|
|
||||||
|
|
||||||
if (!coordinateSystem.ShowCoordinateLabels)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
float horizontalCoordinate = coordinateSystem.MaximumCoordinates.x * normalized;
|
|
||||||
float verticalCoordinate = coordinateSystem.MaximumCoordinates.y * normalized;
|
|
||||||
Handles.Label(verticalStart, horizontalCoordinate.ToString("0.##"), labelStyle);
|
|
||||||
Handles.Label(horizontalStart, verticalCoordinate.ToString("0.##"), labelStyle);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawCorners(MapCoordinateSystem coordinateSystem)
|
|
||||||
{
|
|
||||||
Handles.color = coordinateSystem.BoundaryColor;
|
|
||||||
DrawCorner(coordinateSystem.BottomLeft, "(0, 0)", coordinateSystem);
|
|
||||||
DrawCorner(
|
|
||||||
coordinateSystem.BottomRight,
|
|
||||||
$"({coordinateSystem.MaximumCoordinates.x:0.##}, 0)",
|
|
||||||
coordinateSystem);
|
|
||||||
DrawCorner(
|
|
||||||
coordinateSystem.TopLeft,
|
|
||||||
$"(0, {coordinateSystem.MaximumCoordinates.y:0.##})",
|
|
||||||
coordinateSystem);
|
|
||||||
DrawCorner(
|
|
||||||
coordinateSystem.TopRight,
|
|
||||||
$"({coordinateSystem.MaximumCoordinates.x:0.##}, " +
|
|
||||||
$"{coordinateSystem.MaximumCoordinates.y:0.##})",
|
|
||||||
coordinateSystem);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawCorner(
|
|
||||||
Transform corner,
|
|
||||||
string label,
|
|
||||||
MapCoordinateSystem coordinateSystem)
|
|
||||||
{
|
|
||||||
float size = coordinateSystem.MarkerSize * HandleUtility.GetHandleSize(corner.position);
|
|
||||||
Handles.SphereHandleCap(0, corner.position, Quaternion.identity, size, EventType.Repaint);
|
|
||||||
|
|
||||||
if (coordinateSystem.ShowCoordinateLabels)
|
|
||||||
Handles.Label(corner.position, label, CreateLabelStyle(coordinateSystem.BoundaryColor));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawCrosshairs(MapCoordinateSystem coordinateSystem)
|
|
||||||
{
|
|
||||||
MapController[] controllers =
|
|
||||||
Object.FindObjectsByType<MapController>(FindObjectsSortMode.None);
|
|
||||||
|
|
||||||
foreach (MapController controller in controllers)
|
|
||||||
{
|
|
||||||
if (controller.CoordinateSystem != coordinateSystem || controller.CrosshairVisual == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
Vector3 position = controller.CrosshairVisual.position;
|
|
||||||
Vector2 coordinates = coordinateSystem.WorldPositionToCoordinates(position);
|
|
||||||
float size = coordinateSystem.MarkerSize * 1.35f * HandleUtility.GetHandleSize(position);
|
|
||||||
|
|
||||||
Handles.color = Color.yellow;
|
|
||||||
Handles.SphereHandleCap(0, position, Quaternion.identity, size, EventType.Repaint);
|
|
||||||
Handles.Label(
|
|
||||||
position,
|
|
||||||
$"Crosshair ({coordinates.x:0.00}, {coordinates.y:0.00})",
|
|
||||||
CreateLabelStyle(Color.yellow));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawTargets(MapCoordinateSystem coordinateSystem)
|
|
||||||
{
|
|
||||||
if (!coordinateSystem.ShowCoordinateLabels)
|
|
||||||
return;
|
|
||||||
|
|
||||||
MapTarget[] targets = Object.FindObjectsByType<MapTarget>(FindObjectsSortMode.None);
|
|
||||||
foreach (MapTarget mapTarget in targets)
|
|
||||||
{
|
|
||||||
if (mapTarget.CoordinateSystem != null && mapTarget.CoordinateSystem != coordinateSystem)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
Vector3 position = mapTarget.transform.position;
|
|
||||||
Vector2 coordinates = coordinateSystem.WorldPositionToCoordinates(position);
|
|
||||||
Handles.Label(
|
|
||||||
position,
|
|
||||||
$"{mapTarget.name} ({coordinates.x:0.00}, {coordinates.y:0.00})",
|
|
||||||
CreateLabelStyle(Color.red));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DrawPlayers(MapCoordinateSystem coordinateSystem)
|
|
||||||
{
|
|
||||||
MapPlayer[] players = Object.FindObjectsByType<MapPlayer>(FindObjectsSortMode.None);
|
|
||||||
foreach (MapPlayer mapPlayer in players)
|
|
||||||
{
|
|
||||||
if (mapPlayer.CoordinateSystem != null && mapPlayer.CoordinateSystem != coordinateSystem)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
Vector3 position = mapPlayer.transform.position;
|
|
||||||
Vector2 coordinates = coordinateSystem.WorldPositionToCoordinates(position);
|
|
||||||
Handles.Label(
|
|
||||||
position,
|
|
||||||
$"MapPlayer ({coordinates.x:0.00}, {coordinates.y:0.00})",
|
|
||||||
CreateLabelStyle(Color.green));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static GUIStyle CreateLabelStyle(Color color)
|
|
||||||
{
|
|
||||||
GUIStyle style = new(EditorStyles.boldLabel);
|
|
||||||
style.normal.textColor = color;
|
|
||||||
return style;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7c020017978644e9be71242ece0e6011
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
using UnityEditor;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[CustomEditor(typeof(MapTargetController))]
|
|
||||||
public sealed class MapTargetControllerEditor : Editor
|
|
||||||
{
|
|
||||||
public override void OnInspectorGUI()
|
|
||||||
{
|
|
||||||
DrawDefaultInspector();
|
|
||||||
EditorGUILayout.Space();
|
|
||||||
|
|
||||||
using (new EditorGUI.DisabledScope(!Application.isPlaying))
|
|
||||||
{
|
|
||||||
if (GUILayout.Button("Start Next Wave"))
|
|
||||||
((MapTargetController)target).StartNextWave();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Application.isPlaying)
|
|
||||||
{
|
|
||||||
EditorGUILayout.HelpBox(
|
|
||||||
"Start Next Wave becomes available in Play Mode.",
|
|
||||||
MessageType.Info);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 09f50d05321d420f86622f0dc7a6fa14
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
[UnityEngine.DisallowMultipleComponent]
|
|
||||||
public sealed class GroundTarget : MapTarget
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8be0d56377aa4082a276cfe31702e80c
|
|
||||||
@@ -1,100 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
using UnityEngine.Serialization;
|
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
|
||||||
public sealed class MapController : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("Main References")]
|
|
||||||
[SerializeField] private MapCrosshairController crosshair = null;
|
|
||||||
[SerializeField] private MapCoordinateSystem coordinateSystem = null;
|
|
||||||
[SerializeField] private MapPlayer mapPlayer = null;
|
|
||||||
|
|
||||||
[Header("Target System")]
|
|
||||||
[SerializeField] private MapTargetController targetController = null;
|
|
||||||
[SerializeField] private Transform targetParent = null;
|
|
||||||
|
|
||||||
[Header("Radar System")]
|
|
||||||
[SerializeField] private MapRadarController radarController = null;
|
|
||||||
[FormerlySerializedAs("targetPrefab")]
|
|
||||||
[SerializeField] private MapTarget radarMarkPrefab = null;
|
|
||||||
|
|
||||||
[Header("Crosshair Objects")]
|
|
||||||
[SerializeField] private Transform relayX = null;
|
|
||||||
[SerializeField] private Transform relayY = null;
|
|
||||||
[SerializeField] private Transform crosshairVisual = null;
|
|
||||||
|
|
||||||
[Header("Input")]
|
|
||||||
[SerializeField, Min(0f)] private float movementSpeed = 1f;
|
|
||||||
[SerializeField] private bool useKeyboardInput = true;
|
|
||||||
|
|
||||||
public MapCoordinateSystem CoordinateSystem => coordinateSystem;
|
|
||||||
public Transform CrosshairVisual => crosshairVisual;
|
|
||||||
|
|
||||||
private void Awake()
|
|
||||||
{
|
|
||||||
if (mapPlayer != null)
|
|
||||||
mapPlayer.Configure(coordinateSystem);
|
|
||||||
|
|
||||||
if (targetController != null)
|
|
||||||
targetController.Configure(coordinateSystem, targetParent, mapPlayer);
|
|
||||||
|
|
||||||
if (radarController != null)
|
|
||||||
radarController.Configure(coordinateSystem, targetController, radarMarkPrefab);
|
|
||||||
|
|
||||||
if (crosshair == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
crosshair.Configure(
|
|
||||||
coordinateSystem,
|
|
||||||
relayX,
|
|
||||||
relayY,
|
|
||||||
crosshairVisual,
|
|
||||||
movementSpeed,
|
|
||||||
useKeyboardInput,
|
|
||||||
targetController);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetHorizontalAxis(float value)
|
|
||||||
{
|
|
||||||
if (crosshair != null)
|
|
||||||
crosshair.SetHorizontalAxis(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetVerticalAxis(float value)
|
|
||||||
{
|
|
||||||
if (crosshair != null)
|
|
||||||
crosshair.SetVerticalAxis(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Vector2 GetCrosshairCoordinates()
|
|
||||||
{
|
|
||||||
return crosshair != null ? crosshair.GetCrosshairCoordinates() : Vector2.zero;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void CreateAndPlaceTargets()
|
|
||||||
{
|
|
||||||
if (targetController != null)
|
|
||||||
targetController.CreateAndPlaceTargets();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool StartNextWave()
|
|
||||||
{
|
|
||||||
return targetController != null && targetController.StartNextWave();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool TryGetNearestTarget(out MapTarget target, out float distance)
|
|
||||||
{
|
|
||||||
if (crosshair != null)
|
|
||||||
return crosshair.TryGetNearestTarget(out target, out distance);
|
|
||||||
|
|
||||||
target = null;
|
|
||||||
distance = -1f;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool ActivateRadar()
|
|
||||||
{
|
|
||||||
return radarController != null && radarController.ActivateRadar();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 5a5f18d44c314323a2550f92ba7d988a
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,147 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
|
||||||
public sealed class MapCoordinateSystem : MonoBehaviour
|
|
||||||
{
|
|
||||||
public const float CoordinateMaximum = 10f;
|
|
||||||
|
|
||||||
[Header("Coordinate Bounds")]
|
|
||||||
[SerializeField] private Transform bottomLeft = null;
|
|
||||||
[SerializeField] private Transform bottomRight = null;
|
|
||||||
[SerializeField] private Transform topLeft = null;
|
|
||||||
[SerializeField] private Transform topRight = null;
|
|
||||||
|
|
||||||
[Header("Square Bounds")]
|
|
||||||
[SerializeField, Min(0.001f)] private float squareSize = 5.14925f;
|
|
||||||
|
|
||||||
[Header("Scene View Visualization")]
|
|
||||||
[SerializeField] private bool showSceneVisualization = true;
|
|
||||||
[SerializeField, Range(1, 20)] private int gridDivisions = 10;
|
|
||||||
[SerializeField] private bool showCoordinateLabels = true;
|
|
||||||
[SerializeField] private Color boundaryColor = new(0f, 0.85f, 1f, 1f);
|
|
||||||
[SerializeField] private Color gridColor = new(0f, 0.85f, 1f, 0.3f);
|
|
||||||
[SerializeField, Min(0.001f)] private float markerSize = 0.06f;
|
|
||||||
|
|
||||||
public Vector2 MaximumCoordinates => new(CoordinateMaximum, CoordinateMaximum);
|
|
||||||
public float SquareSize => Mathf.Max(0.001f, squareSize);
|
|
||||||
public bool ShowSceneVisualization => showSceneVisualization;
|
|
||||||
public int GridDivisions => Mathf.Max(1, gridDivisions);
|
|
||||||
public bool ShowCoordinateLabels => showCoordinateLabels;
|
|
||||||
public Color BoundaryColor => boundaryColor;
|
|
||||||
public Color GridColor => gridColor;
|
|
||||||
public float MarkerSize => Mathf.Max(0.001f, markerSize);
|
|
||||||
public Transform BottomLeft => bottomLeft;
|
|
||||||
public Transform BottomRight => bottomRight;
|
|
||||||
public Transform TopLeft => topLeft;
|
|
||||||
public Transform TopRight => topRight;
|
|
||||||
|
|
||||||
private void OnValidate()
|
|
||||||
{
|
|
||||||
squareSize = Mathf.Max(0.001f, squareSize);
|
|
||||||
ApplySquareBounds();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ApplySquareBounds()
|
|
||||||
{
|
|
||||||
if (!HasValidCorners())
|
|
||||||
return;
|
|
||||||
|
|
||||||
Vector3 origin = bottomLeft.position;
|
|
||||||
Vector3 rightDirection = bottomRight.position - origin;
|
|
||||||
Vector3 upDirection = topLeft.position - origin;
|
|
||||||
if (rightDirection.sqrMagnitude <= Mathf.Epsilon || upDirection.sqrMagnitude <= Mathf.Epsilon)
|
|
||||||
return;
|
|
||||||
|
|
||||||
rightDirection.Normalize();
|
|
||||||
upDirection = Vector3.ProjectOnPlane(upDirection, rightDirection);
|
|
||||||
if (upDirection.sqrMagnitude <= Mathf.Epsilon)
|
|
||||||
return;
|
|
||||||
|
|
||||||
upDirection.Normalize();
|
|
||||||
float size = SquareSize;
|
|
||||||
bottomRight.position = origin + rightDirection * size;
|
|
||||||
topLeft.position = origin + upDirection * size;
|
|
||||||
topRight.position = origin + (rightDirection + upDirection) * size;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Vector2 ClampCoordinates(Vector2 coordinates)
|
|
||||||
{
|
|
||||||
return new Vector2(
|
|
||||||
Mathf.Clamp(coordinates.x, 0f, CoordinateMaximum),
|
|
||||||
Mathf.Clamp(coordinates.y, 0f, CoordinateMaximum));
|
|
||||||
}
|
|
||||||
|
|
||||||
public Vector3 CoordinatesToWorldPosition(Vector2 coordinates)
|
|
||||||
{
|
|
||||||
if (!HasValidCorners())
|
|
||||||
return transform.position;
|
|
||||||
|
|
||||||
Vector2 clamped = ClampCoordinates(coordinates);
|
|
||||||
float horizontal = clamped.x / CoordinateMaximum;
|
|
||||||
float vertical = clamped.y / CoordinateMaximum;
|
|
||||||
|
|
||||||
Vector3 bottom = Vector3.Lerp(bottomLeft.position, bottomRight.position, horizontal);
|
|
||||||
Vector3 top = Vector3.Lerp(topLeft.position, topRight.position, horizontal);
|
|
||||||
return Vector3.Lerp(bottom, top, vertical);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Vector2 WorldPositionToCoordinates(Vector3 worldPosition)
|
|
||||||
{
|
|
||||||
if (!HasValidCorners())
|
|
||||||
return Vector2.zero;
|
|
||||||
|
|
||||||
Vector3 horizontalEdge = bottomRight.position - bottomLeft.position;
|
|
||||||
Vector3 verticalEdge = topLeft.position - bottomLeft.position;
|
|
||||||
Vector3 fromBottomLeft = worldPosition - bottomLeft.position;
|
|
||||||
|
|
||||||
float horizontal = horizontalEdge.sqrMagnitude > Mathf.Epsilon
|
|
||||||
? Vector3.Dot(fromBottomLeft, horizontalEdge) / horizontalEdge.sqrMagnitude
|
|
||||||
: 0f;
|
|
||||||
float vertical = verticalEdge.sqrMagnitude > Mathf.Epsilon
|
|
||||||
? Vector3.Dot(fromBottomLeft, verticalEdge) / verticalEdge.sqrMagnitude
|
|
||||||
: 0f;
|
|
||||||
|
|
||||||
for (int iteration = 0; iteration < 6; iteration++)
|
|
||||||
{
|
|
||||||
Vector3 current = BilinearPosition(horizontal, vertical);
|
|
||||||
Vector3 error = worldPosition - current;
|
|
||||||
Vector3 horizontalDerivative = Vector3.Lerp(
|
|
||||||
bottomRight.position - bottomLeft.position,
|
|
||||||
topRight.position - topLeft.position,
|
|
||||||
vertical);
|
|
||||||
Vector3 verticalDerivative = Vector3.Lerp(
|
|
||||||
topLeft.position - bottomLeft.position,
|
|
||||||
topRight.position - bottomRight.position,
|
|
||||||
horizontal);
|
|
||||||
|
|
||||||
float horizontalLength = Vector3.Dot(horizontalDerivative, horizontalDerivative);
|
|
||||||
float mixedLength = Vector3.Dot(horizontalDerivative, verticalDerivative);
|
|
||||||
float verticalLength = Vector3.Dot(verticalDerivative, verticalDerivative);
|
|
||||||
float determinant = horizontalLength * verticalLength - mixedLength * mixedLength;
|
|
||||||
if (Mathf.Abs(determinant) <= Mathf.Epsilon)
|
|
||||||
break;
|
|
||||||
|
|
||||||
float horizontalError = Vector3.Dot(horizontalDerivative, error);
|
|
||||||
float verticalError = Vector3.Dot(verticalDerivative, error);
|
|
||||||
horizontal += (horizontalError * verticalLength - verticalError * mixedLength) / determinant;
|
|
||||||
vertical += (verticalError * horizontalLength - horizontalError * mixedLength) / determinant;
|
|
||||||
}
|
|
||||||
|
|
||||||
Vector2 coordinates = new(
|
|
||||||
horizontal * CoordinateMaximum,
|
|
||||||
vertical * CoordinateMaximum);
|
|
||||||
return ClampCoordinates(coordinates);
|
|
||||||
}
|
|
||||||
|
|
||||||
private Vector3 BilinearPosition(float horizontal, float vertical)
|
|
||||||
{
|
|
||||||
Vector3 bottom = Vector3.LerpUnclamped(bottomLeft.position, bottomRight.position, horizontal);
|
|
||||||
Vector3 top = Vector3.LerpUnclamped(topLeft.position, topRight.position, horizontal);
|
|
||||||
return Vector3.LerpUnclamped(bottom, top, vertical);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasValidCorners()
|
|
||||||
{
|
|
||||||
return bottomLeft != null && bottomRight != null && topLeft != null && topRight != null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7206111709094332bdc9b4c7c44695b4
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,181 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
using UnityEngine.InputSystem;
|
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
|
||||||
public sealed class MapCrosshairController : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("Nearest Target (Runtime)")]
|
|
||||||
[SerializeField] private MapTarget nearestTarget = null;
|
|
||||||
[SerializeField] private float distanceToNearestTarget = -1f;
|
|
||||||
|
|
||||||
private MapCoordinateSystem coordinateSystem;
|
|
||||||
private MapTargetController targetController;
|
|
||||||
private Transform relayX;
|
|
||||||
private Transform relayY;
|
|
||||||
private Transform crosshairVisual;
|
|
||||||
private float movementSpeed;
|
|
||||||
private bool useKeyboardInput;
|
|
||||||
private float horizontalAxis;
|
|
||||||
private float verticalAxis;
|
|
||||||
private Vector2 crosshairCoordinates;
|
|
||||||
private Vector3 relayXOffset;
|
|
||||||
private Vector3 relayYOffset;
|
|
||||||
private bool isConfigured;
|
|
||||||
|
|
||||||
public MapCoordinateSystem CoordinateSystem => coordinateSystem;
|
|
||||||
|
|
||||||
public void Configure(
|
|
||||||
MapCoordinateSystem newCoordinateSystem,
|
|
||||||
Transform newRelayX,
|
|
||||||
Transform newRelayY,
|
|
||||||
Transform newCrosshairVisual,
|
|
||||||
float newMovementSpeed,
|
|
||||||
bool enableKeyboardInput,
|
|
||||||
MapTargetController newTargetController)
|
|
||||||
{
|
|
||||||
coordinateSystem = newCoordinateSystem;
|
|
||||||
relayX = newRelayX;
|
|
||||||
relayY = newRelayY;
|
|
||||||
crosshairVisual = newCrosshairVisual;
|
|
||||||
movementSpeed = Mathf.Max(0f, newMovementSpeed);
|
|
||||||
useKeyboardInput = enableKeyboardInput;
|
|
||||||
targetController = newTargetController;
|
|
||||||
crosshairCoordinates = Vector2.zero;
|
|
||||||
isConfigured = CalibrateObjects();
|
|
||||||
|
|
||||||
if (isConfigured)
|
|
||||||
ApplyCoordinates();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Update()
|
|
||||||
{
|
|
||||||
if (!isConfigured)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (useKeyboardInput)
|
|
||||||
ReadKeyboardInput();
|
|
||||||
|
|
||||||
Vector2 movement = new(horizontalAxis, verticalAxis);
|
|
||||||
crosshairCoordinates += movement * (movementSpeed * Time.deltaTime);
|
|
||||||
crosshairCoordinates = coordinateSystem.ClampCoordinates(crosshairCoordinates);
|
|
||||||
ApplyCoordinates();
|
|
||||||
UpdateNearestTarget();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetHorizontalAxis(float value)
|
|
||||||
{
|
|
||||||
horizontalAxis = Mathf.Clamp(value, -1f, 1f);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetVerticalAxis(float value)
|
|
||||||
{
|
|
||||||
verticalAxis = Mathf.Clamp(value, -1f, 1f);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Vector2 GetCrosshairCoordinates()
|
|
||||||
{
|
|
||||||
return crosshairCoordinates;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MapTarget GetNearestTarget()
|
|
||||||
{
|
|
||||||
return nearestTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float GetDistanceToNearestTarget()
|
|
||||||
{
|
|
||||||
return distanceToNearestTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool TryGetNearestTarget(out MapTarget target, out float distance)
|
|
||||||
{
|
|
||||||
target = nearestTarget;
|
|
||||||
distance = distanceToNearestTarget;
|
|
||||||
return target != null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ReadKeyboardInput()
|
|
||||||
{
|
|
||||||
Keyboard keyboard = Keyboard.current;
|
|
||||||
if (keyboard == null)
|
|
||||||
{
|
|
||||||
SetHorizontalAxis(0f);
|
|
||||||
SetVerticalAxis(0f);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
SetHorizontalAxis(
|
|
||||||
(keyboard.lKey.isPressed ? 1f : 0f) - (keyboard.jKey.isPressed ? 1f : 0f));
|
|
||||||
SetVerticalAxis(
|
|
||||||
(keyboard.iKey.isPressed ? 1f : 0f) - (keyboard.kKey.isPressed ? 1f : 0f));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void ApplyCoordinates()
|
|
||||||
{
|
|
||||||
Vector3 targetWorldPosition = coordinateSystem.CoordinatesToWorldPosition(crosshairCoordinates);
|
|
||||||
crosshairVisual.position = targetWorldPosition;
|
|
||||||
|
|
||||||
if (relayX != null)
|
|
||||||
relayX.position = coordinateSystem.CoordinatesToWorldPosition(
|
|
||||||
new Vector2(crosshairCoordinates.x, 0f)) + relayXOffset;
|
|
||||||
|
|
||||||
if (relayY != null)
|
|
||||||
relayY.position = coordinateSystem.CoordinatesToWorldPosition(
|
|
||||||
new Vector2(0f, crosshairCoordinates.y)) + relayYOffset;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool CalibrateObjects()
|
|
||||||
{
|
|
||||||
if (coordinateSystem == null || crosshairVisual == null || !coordinateSystem.HasValidCorners())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
Vector3 origin = coordinateSystem.CoordinatesToWorldPosition(Vector2.zero);
|
|
||||||
Vector3 horizontalDirection =
|
|
||||||
coordinateSystem.CoordinatesToWorldPosition(new Vector2(MapCoordinateSystem.CoordinateMaximum, 0f)) -
|
|
||||||
origin;
|
|
||||||
Vector3 verticalDirection =
|
|
||||||
coordinateSystem.CoordinatesToWorldPosition(new Vector2(0f, MapCoordinateSystem.CoordinateMaximum)) -
|
|
||||||
origin;
|
|
||||||
|
|
||||||
if (horizontalDirection.sqrMagnitude <= Mathf.Epsilon ||
|
|
||||||
verticalDirection.sqrMagnitude <= Mathf.Epsilon)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
horizontalDirection.Normalize();
|
|
||||||
verticalDirection.Normalize();
|
|
||||||
|
|
||||||
if (relayX != null)
|
|
||||||
relayXOffset = Vector3.ProjectOnPlane(relayX.position - origin, horizontalDirection);
|
|
||||||
|
|
||||||
if (relayY != null)
|
|
||||||
relayYOffset = Vector3.ProjectOnPlane(relayY.position - origin, verticalDirection);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdateNearestTarget()
|
|
||||||
{
|
|
||||||
nearestTarget = null;
|
|
||||||
distanceToNearestTarget = -1f;
|
|
||||||
|
|
||||||
if (targetController == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
float nearestSqrDistance = float.PositiveInfinity;
|
|
||||||
foreach (MapTarget target in targetController.Targets)
|
|
||||||
{
|
|
||||||
if (target == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
float sqrDistance = (target.MapCoordinates - crosshairCoordinates).sqrMagnitude;
|
|
||||||
if (sqrDistance >= nearestSqrDistance)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
nearestSqrDistance = sqrDistance;
|
|
||||||
nearestTarget = target;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nearestTarget != null)
|
|
||||||
distanceToNearestTarget = Mathf.Sqrt(nearestSqrDistance);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: f1eaeed1aba94e03b8f4b98a580444de
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
|
||||||
public sealed class MapPlayer : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("Map Position")]
|
|
||||||
[SerializeField] private Vector2 mapCoordinates = new(5f, 5f);
|
|
||||||
|
|
||||||
private MapCoordinateSystem coordinateSystem;
|
|
||||||
|
|
||||||
public Vector2 MapCoordinates => mapCoordinates;
|
|
||||||
public MapCoordinateSystem CoordinateSystem => coordinateSystem;
|
|
||||||
|
|
||||||
public void Configure(MapCoordinateSystem newCoordinateSystem)
|
|
||||||
{
|
|
||||||
coordinateSystem = newCoordinateSystem;
|
|
||||||
SetMapCoordinates(mapCoordinates);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMapCoordinates(Vector2 coordinates)
|
|
||||||
{
|
|
||||||
mapCoordinates = coordinateSystem != null
|
|
||||||
? coordinateSystem.ClampCoordinates(coordinates)
|
|
||||||
: new Vector2(
|
|
||||||
Mathf.Clamp(coordinates.x, 0f, MapCoordinateSystem.CoordinateMaximum),
|
|
||||||
Mathf.Clamp(coordinates.y, 0f, MapCoordinateSystem.CoordinateMaximum));
|
|
||||||
|
|
||||||
if (coordinateSystem != null && coordinateSystem.HasValidCorners())
|
|
||||||
transform.position = coordinateSystem.CoordinatesToWorldPosition(mapCoordinates);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Vector2 GetMapCoordinates()
|
|
||||||
{
|
|
||||||
return mapCoordinates;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e8c0e4a1fa154b5ca06510a1443335bf
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.InputSystem;
|
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
|
||||||
public sealed class MapRadarController : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("Radar Settings")]
|
|
||||||
[SerializeField, Min(0f)] private float cooldown = 5f;
|
|
||||||
[SerializeField] private bool useKeyboardInput = true;
|
|
||||||
|
|
||||||
[Header("Radar State (Runtime)")]
|
|
||||||
[SerializeField] private float cooldownRemaining;
|
|
||||||
|
|
||||||
private readonly List<GameObject> radarMarks = new();
|
|
||||||
private MapCoordinateSystem coordinateSystem;
|
|
||||||
private MapTargetController targetController;
|
|
||||||
private MapTarget radarMarkPrefab;
|
|
||||||
private float nextActivationTime;
|
|
||||||
private bool isConfigured;
|
|
||||||
|
|
||||||
public float CooldownRemaining => cooldownRemaining;
|
|
||||||
public bool IsReady => cooldownRemaining <= 0f;
|
|
||||||
|
|
||||||
private void OnValidate()
|
|
||||||
{
|
|
||||||
cooldown = Mathf.Max(0f, cooldown);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Configure(
|
|
||||||
MapCoordinateSystem newCoordinateSystem,
|
|
||||||
MapTargetController newTargetController,
|
|
||||||
MapTarget newRadarMarkPrefab)
|
|
||||||
{
|
|
||||||
coordinateSystem = newCoordinateSystem;
|
|
||||||
targetController = newTargetController;
|
|
||||||
radarMarkPrefab = newRadarMarkPrefab;
|
|
||||||
isConfigured = coordinateSystem != null &&
|
|
||||||
coordinateSystem.HasValidCorners() &&
|
|
||||||
targetController != null &&
|
|
||||||
radarMarkPrefab != null;
|
|
||||||
|
|
||||||
if (targetController != null)
|
|
||||||
targetController.SetTargetVisualsVisible(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Update()
|
|
||||||
{
|
|
||||||
cooldownRemaining = Mathf.Max(0f, nextActivationTime - Time.time);
|
|
||||||
|
|
||||||
if (!useKeyboardInput)
|
|
||||||
return;
|
|
||||||
|
|
||||||
Keyboard keyboard = Keyboard.current;
|
|
||||||
if (keyboard != null && keyboard.oKey.wasPressedThisFrame)
|
|
||||||
ActivateRadar();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool ActivateRadar()
|
|
||||||
{
|
|
||||||
if (!isConfigured || Time.time < nextActivationTime)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
PlaceRadarMarks();
|
|
||||||
nextActivationTime = Time.time + Mathf.Max(0f, cooldown);
|
|
||||||
cooldownRemaining = Mathf.Max(0f, nextActivationTime - Time.time);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void PlaceRadarMarks()
|
|
||||||
{
|
|
||||||
int targetCount = targetController.Targets.Count;
|
|
||||||
EnsureRadarMarkCount(targetCount);
|
|
||||||
|
|
||||||
for (int index = 0; index < radarMarks.Count; index++)
|
|
||||||
{
|
|
||||||
bool hasTarget = index < targetCount && targetController.Targets[index] != null;
|
|
||||||
GameObject radarMark = radarMarks[index];
|
|
||||||
radarMark.SetActive(hasTarget);
|
|
||||||
|
|
||||||
if (!hasTarget)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
MapTarget target = targetController.Targets[index];
|
|
||||||
radarMark.name = $"Radar Mark - {target.name}";
|
|
||||||
radarMark.transform.position =
|
|
||||||
coordinateSystem.CoordinatesToWorldPosition(target.MapCoordinates);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void EnsureRadarMarkCount(int requiredCount)
|
|
||||||
{
|
|
||||||
while (radarMarks.Count < requiredCount)
|
|
||||||
{
|
|
||||||
GameObject radarMark = Instantiate(radarMarkPrefab.gameObject, transform);
|
|
||||||
PrepareRadarMark(radarMark);
|
|
||||||
radarMarks.Add(radarMark);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void PrepareRadarMark(GameObject radarMark)
|
|
||||||
{
|
|
||||||
MapTarget targetMovement = radarMark.GetComponent<MapTarget>();
|
|
||||||
if (targetMovement != null)
|
|
||||||
targetMovement.enabled = false;
|
|
||||||
|
|
||||||
foreach (Collider targetCollider in radarMark.GetComponentsInChildren<Collider>(true))
|
|
||||||
targetCollider.enabled = false;
|
|
||||||
|
|
||||||
foreach (Renderer targetRenderer in radarMark.GetComponentsInChildren<Renderer>(true))
|
|
||||||
targetRenderer.enabled = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 168bf77c50d14e44a54a3a2e6717d012
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
using System;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
|
||||||
public class MapTarget : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("Target State (Runtime)")]
|
|
||||||
[SerializeField] private TargetConfig config;
|
|
||||||
[SerializeField] private float timeUntilAttack;
|
|
||||||
[SerializeField] private Vector2 mapCoordinates;
|
|
||||||
[SerializeField] private int currentHealth;
|
|
||||||
[SerializeField] private MissileType requiredMissileType;
|
|
||||||
[SerializeField] private bool isReadyToAttack;
|
|
||||||
|
|
||||||
private MapCoordinateSystem coordinateSystem;
|
|
||||||
private MapPlayer player;
|
|
||||||
private bool isConfigured;
|
|
||||||
private Renderer[] targetRenderers;
|
|
||||||
|
|
||||||
public Vector2 MapCoordinates => mapCoordinates;
|
|
||||||
public MapCoordinateSystem CoordinateSystem => coordinateSystem;
|
|
||||||
public TargetConfig Config => config;
|
|
||||||
public MapPlayer Player => player;
|
|
||||||
public float TimeUntilAttack => timeUntilAttack;
|
|
||||||
public int CurrentHealth => currentHealth;
|
|
||||||
public MissileType RequiredMissileType => requiredMissileType;
|
|
||||||
public bool IsReadyToAttack => isReadyToAttack;
|
|
||||||
|
|
||||||
public event Action<MapTarget> AttackReady;
|
|
||||||
|
|
||||||
public void Configure(
|
|
||||||
TargetConfig newConfig,
|
|
||||||
MapCoordinateSystem newCoordinateSystem,
|
|
||||||
Vector2 startCoordinates,
|
|
||||||
MapPlayer newPlayer)
|
|
||||||
{
|
|
||||||
config = newConfig;
|
|
||||||
coordinateSystem = newCoordinateSystem;
|
|
||||||
player = newPlayer;
|
|
||||||
timeUntilAttack = config != null ? config.TimeBeforeAttack : 0f;
|
|
||||||
currentHealth = config != null ? config.Health : 1;
|
|
||||||
requiredMissileType = config != null ? config.RequiredMissileType : MissileType.None;
|
|
||||||
isReadyToAttack = false;
|
|
||||||
isConfigured = coordinateSystem != null && coordinateSystem.HasValidCorners();
|
|
||||||
SetMapCoordinates(startCoordinates);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual void Update()
|
|
||||||
{
|
|
||||||
if (!isConfigured)
|
|
||||||
return;
|
|
||||||
|
|
||||||
TickAttackTimer(Time.deltaTime);
|
|
||||||
TickMovement(Time.deltaTime);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMapCoordinates(Vector2 coordinates)
|
|
||||||
{
|
|
||||||
mapCoordinates = coordinateSystem != null
|
|
||||||
? coordinateSystem.ClampCoordinates(coordinates)
|
|
||||||
: new Vector2(
|
|
||||||
Mathf.Clamp(coordinates.x, 0f, MapCoordinateSystem.CoordinateMaximum),
|
|
||||||
Mathf.Clamp(coordinates.y, 0f, MapCoordinateSystem.CoordinateMaximum));
|
|
||||||
|
|
||||||
if (isConfigured)
|
|
||||||
transform.position = coordinateSystem.CoordinatesToWorldPosition(mapCoordinates);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Vector2 GetMapCoordinates()
|
|
||||||
{
|
|
||||||
return mapCoordinates;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetVisualsVisible(bool isVisible)
|
|
||||||
{
|
|
||||||
if (targetRenderers == null)
|
|
||||||
targetRenderers = GetComponentsInChildren<Renderer>(true);
|
|
||||||
|
|
||||||
foreach (Renderer targetRenderer in targetRenderers)
|
|
||||||
{
|
|
||||||
if (targetRenderer != null)
|
|
||||||
targetRenderer.enabled = isVisible;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual void TickMovement(float deltaTime)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
private void TickAttackTimer(float deltaTime)
|
|
||||||
{
|
|
||||||
if (isReadyToAttack)
|
|
||||||
return;
|
|
||||||
|
|
||||||
timeUntilAttack = Mathf.Max(0f, timeUntilAttack - deltaTime);
|
|
||||||
if (timeUntilAttack > 0f)
|
|
||||||
return;
|
|
||||||
|
|
||||||
isReadyToAttack = true;
|
|
||||||
AttackReady?.Invoke(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2ae53f81d9ed4a0fb8d3496feac79ca1
|
|
||||||
@@ -1,172 +0,0 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[DisallowMultipleComponent]
|
|
||||||
public sealed class MapTargetController : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("Random Wave Settings")]
|
|
||||||
[SerializeField, Min(0)] private int targetsPerWave = 5;
|
|
||||||
[SerializeField] private TargetConfig[] randomTargetConfigs = System.Array.Empty<TargetConfig>();
|
|
||||||
|
|
||||||
[Header("Current Wave (Runtime)")]
|
|
||||||
[SerializeField, Min(0)] private int currentWave;
|
|
||||||
[SerializeField] private List<MapTarget> currentWaveTargets = new();
|
|
||||||
|
|
||||||
private readonly List<MapTarget> pooledTargets = new();
|
|
||||||
private MapCoordinateSystem coordinateSystem;
|
|
||||||
private Transform targetParent;
|
|
||||||
private MapPlayer player;
|
|
||||||
private bool isConfigured;
|
|
||||||
|
|
||||||
public IReadOnlyList<MapTarget> Targets => currentWaveTargets;
|
|
||||||
public int CurrentWave => currentWave;
|
|
||||||
public int TargetsPerWave => targetsPerWave;
|
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
if (currentWave == 0)
|
|
||||||
StartNextWave();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnValidate()
|
|
||||||
{
|
|
||||||
targetsPerWave = Mathf.Max(0, targetsPerWave);
|
|
||||||
currentWave = Mathf.Max(0, currentWave);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Configure(
|
|
||||||
MapCoordinateSystem newCoordinateSystem,
|
|
||||||
Transform newTargetParent,
|
|
||||||
MapPlayer newPlayer)
|
|
||||||
{
|
|
||||||
coordinateSystem = newCoordinateSystem;
|
|
||||||
targetParent = newTargetParent != null ? newTargetParent : transform;
|
|
||||||
player = newPlayer;
|
|
||||||
isConfigured = coordinateSystem != null && coordinateSystem.HasValidCorners();
|
|
||||||
|
|
||||||
pooledTargets.Clear();
|
|
||||||
foreach (MapTarget existingTarget in targetParent.GetComponentsInChildren<MapTarget>(true))
|
|
||||||
{
|
|
||||||
existingTarget.SetVisualsVisible(false);
|
|
||||||
existingTarget.gameObject.SetActive(false);
|
|
||||||
pooledTargets.Add(existingTarget);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool StartNextWave()
|
|
||||||
{
|
|
||||||
if (!isConfigured || !HasValidTargetConfig())
|
|
||||||
{
|
|
||||||
Debug.LogWarning("Target controller has no coordinate system or valid TargetConfig.", this);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
RetireCurrentWave();
|
|
||||||
currentWave++;
|
|
||||||
|
|
||||||
for (int index = 0; index < targetsPerWave; index++)
|
|
||||||
{
|
|
||||||
TargetConfig config = GetRandomValidConfig();
|
|
||||||
if (config == null)
|
|
||||||
break;
|
|
||||||
|
|
||||||
MapTarget target = GetPooledTarget(config);
|
|
||||||
if (target == null)
|
|
||||||
target = Instantiate(config.TargetPrefab, targetParent);
|
|
||||||
|
|
||||||
target.name = $"Wave {currentWave} - {config.name} - {index + 1}";
|
|
||||||
target.Configure(config, coordinateSystem, GetRandomCoordinates(), player);
|
|
||||||
target.SetVisualsVisible(false);
|
|
||||||
target.gameObject.SetActive(true);
|
|
||||||
currentWaveTargets.Add(target);
|
|
||||||
}
|
|
||||||
|
|
||||||
return currentWaveTargets.Count > 0 || targetsPerWave == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void CreateAndPlaceTargets()
|
|
||||||
{
|
|
||||||
StartNextWave();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetTargetVisualsVisible(bool isVisible)
|
|
||||||
{
|
|
||||||
foreach (MapTarget target in currentWaveTargets)
|
|
||||||
{
|
|
||||||
if (target != null)
|
|
||||||
target.SetVisualsVisible(isVisible);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public MapTarget GetTarget(int index)
|
|
||||||
{
|
|
||||||
return index >= 0 && index < currentWaveTargets.Count
|
|
||||||
? currentWaveTargets[index]
|
|
||||||
: null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RetireCurrentWave()
|
|
||||||
{
|
|
||||||
foreach (MapTarget target in currentWaveTargets)
|
|
||||||
{
|
|
||||||
if (target == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
target.SetVisualsVisible(false);
|
|
||||||
target.gameObject.SetActive(false);
|
|
||||||
|
|
||||||
if (!pooledTargets.Contains(target))
|
|
||||||
pooledTargets.Add(target);
|
|
||||||
}
|
|
||||||
|
|
||||||
currentWaveTargets.Clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
private MapTarget GetPooledTarget(TargetConfig config)
|
|
||||||
{
|
|
||||||
for (int index = pooledTargets.Count - 1; index >= 0; index--)
|
|
||||||
{
|
|
||||||
MapTarget candidate = pooledTargets[index];
|
|
||||||
if (candidate == null)
|
|
||||||
{
|
|
||||||
pooledTargets.RemoveAt(index);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (candidate.GetType() != config.TargetPrefab.GetType())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
pooledTargets.RemoveAt(index);
|
|
||||||
return candidate;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool HasValidTargetConfig()
|
|
||||||
{
|
|
||||||
return GetRandomValidConfig() != null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private TargetConfig GetRandomValidConfig()
|
|
||||||
{
|
|
||||||
if (randomTargetConfigs == null || randomTargetConfigs.Length == 0)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
int startIndex = Random.Range(0, randomTargetConfigs.Length);
|
|
||||||
for (int offset = 0; offset < randomTargetConfigs.Length; offset++)
|
|
||||||
{
|
|
||||||
TargetConfig config = randomTargetConfigs[(startIndex + offset) % randomTargetConfigs.Length];
|
|
||||||
if (config != null && config.TargetPrefab != null)
|
|
||||||
return config;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static Vector2 GetRandomCoordinates()
|
|
||||||
{
|
|
||||||
float maximum = MapCoordinateSystem.CoordinateMaximum;
|
|
||||||
return new Vector2(Random.Range(0f, maximum), Random.Range(0f, maximum));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 06d2f3ff739a4a4ca04d749ccf14fd9c
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
public enum MissileType
|
|
||||||
{
|
|
||||||
None = 0,
|
|
||||||
Standard = 1,
|
|
||||||
AntiAir = 2,
|
|
||||||
AntiGround = 3
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7c284b720e314585add2b38671f83ccf
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d88efbc6589a4404caadb566c0e28842
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,129 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1 &4012125527390687084
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 2929517388927179322}
|
|
||||||
- component: {fileID: 1898238889115289471}
|
|
||||||
- component: {fileID: 5321613745555827914}
|
|
||||||
- component: {fileID: 212733908007784450}
|
|
||||||
- component: {fileID: 878491239745611204}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: AirTargetTest
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &2929517388927179322
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 0.39, y: 0.39, z: 0.39}
|
|
||||||
m_ConstrainProportionsScale: 1
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!33 &1898238889115289471
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!23 &5321613745555827914
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: c57515654cf43eb4995ae19964d2ca0b, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
|
||||||
firstSubMesh: 0
|
|
||||||
subMeshCount: 0
|
|
||||||
m_StaticBatchRoot: {fileID: 0}
|
|
||||||
m_ProbeAnchor: {fileID: 0}
|
|
||||||
m_LightProbeVolumeOverride: {fileID: 0}
|
|
||||||
m_ScaleInLightmap: 1
|
|
||||||
m_ReceiveGI: 1
|
|
||||||
m_PreserveUVs: 0
|
|
||||||
m_IgnoreNormalsForChartDetection: 0
|
|
||||||
m_ImportantGI: 0
|
|
||||||
m_StitchLightmapSeams: 1
|
|
||||||
m_SelectedEditorRenderState: 3
|
|
||||||
m_MinimumChartSize: 4
|
|
||||||
m_AutoUVMaxDistance: 0.5
|
|
||||||
m_AutoUVMaxAngle: 89
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
|
||||||
--- !u!65 &212733908007784450
|
|
||||||
BoxCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_Size: {x: 1, y: 1, z: 1}
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &878491239745611204
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: d5316cf7562b473d9513878ea906a1b2, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::AirTarget
|
|
||||||
config: {fileID: 0}
|
|
||||||
timeUntilAttack: 0
|
|
||||||
mapCoordinates: {x: 0, y: 0}
|
|
||||||
currentHealth: 0
|
|
||||||
requiredMissileType: 0
|
|
||||||
isReadyToAttack: 0
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7ef28d9e428a4b94ab7ea4f36fd44d9c
|
|
||||||
PrefabImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1 &2177866398127073846
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 8348844199957468506}
|
|
||||||
- component: {fileID: 272982991980855488}
|
|
||||||
- component: {fileID: 2419606774366489511}
|
|
||||||
- component: {fileID: 7430463338199182122}
|
|
||||||
- component: {fileID: 3288838730342684678}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: MapPlayer
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &8348844199957468506
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2177866398127073846}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: -11.339558, y: -0.48904037, z: 8.11739}
|
|
||||||
m_LocalScale: {x: 0.39, y: 0.39, z: 0.39}
|
|
||||||
m_ConstrainProportionsScale: 1
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!33 &272982991980855488
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2177866398127073846}
|
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!23 &2419606774366489511
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2177866398127073846}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: b27d30c59586fb4499180239a9bd64f1, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
|
||||||
firstSubMesh: 0
|
|
||||||
subMeshCount: 0
|
|
||||||
m_StaticBatchRoot: {fileID: 0}
|
|
||||||
m_ProbeAnchor: {fileID: 0}
|
|
||||||
m_LightProbeVolumeOverride: {fileID: 0}
|
|
||||||
m_ScaleInLightmap: 1
|
|
||||||
m_ReceiveGI: 1
|
|
||||||
m_PreserveUVs: 0
|
|
||||||
m_IgnoreNormalsForChartDetection: 0
|
|
||||||
m_ImportantGI: 0
|
|
||||||
m_StitchLightmapSeams: 1
|
|
||||||
m_SelectedEditorRenderState: 3
|
|
||||||
m_MinimumChartSize: 4
|
|
||||||
m_AutoUVMaxDistance: 0.5
|
|
||||||
m_AutoUVMaxAngle: 89
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
|
||||||
--- !u!65 &7430463338199182122
|
|
||||||
BoxCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2177866398127073846}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_Size: {x: 1, y: 1, z: 1}
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &3288838730342684678
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2177866398127073846}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: e8c0e4a1fa154b5ca06510a1443335bf, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::MapPlayer
|
|
||||||
mapCoordinates: {x: 5, y: 5}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 87ea05b44a3faf5489e6266f985c5324
|
|
||||||
PrefabImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,129 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1 &4012125527390687084
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 2929517388927179322}
|
|
||||||
- component: {fileID: 1898238889115289471}
|
|
||||||
- component: {fileID: 5321613745555827914}
|
|
||||||
- component: {fileID: 212733908007784450}
|
|
||||||
- component: {fileID: 878491239745611204}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: TargetTest
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &2929517388927179322
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: -0.42, y: 3.280054, z: 2.6187859}
|
|
||||||
m_LocalScale: {x: 0.39, y: 0.39, z: 0.39}
|
|
||||||
m_ConstrainProportionsScale: 1
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!33 &1898238889115289471
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!23 &5321613745555827914
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: c57515654cf43eb4995ae19964d2ca0b, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
|
||||||
firstSubMesh: 0
|
|
||||||
subMeshCount: 0
|
|
||||||
m_StaticBatchRoot: {fileID: 0}
|
|
||||||
m_ProbeAnchor: {fileID: 0}
|
|
||||||
m_LightProbeVolumeOverride: {fileID: 0}
|
|
||||||
m_ScaleInLightmap: 1
|
|
||||||
m_ReceiveGI: 1
|
|
||||||
m_PreserveUVs: 0
|
|
||||||
m_IgnoreNormalsForChartDetection: 0
|
|
||||||
m_ImportantGI: 0
|
|
||||||
m_StitchLightmapSeams: 1
|
|
||||||
m_SelectedEditorRenderState: 3
|
|
||||||
m_MinimumChartSize: 4
|
|
||||||
m_AutoUVMaxDistance: 0.5
|
|
||||||
m_AutoUVMaxAngle: 89
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
|
||||||
--- !u!65 &212733908007784450
|
|
||||||
BoxCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_Size: {x: 1, y: 1, z: 1}
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &878491239745611204
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4012125527390687084}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 8be0d56377aa4082a276cfe31702e80c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::GroundTarget
|
|
||||||
config: {fileID: 0}
|
|
||||||
timeUntilAttack: 0
|
|
||||||
mapCoordinates: {x: 0, y: 0}
|
|
||||||
currentHealth: 0
|
|
||||||
requiredMissileType: 0
|
|
||||||
isReadyToAttack: 0
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 985d88cac4b4daa48973a1a464a3d4e5
|
|
||||||
PrefabImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[CreateAssetMenu(fileName = "TargetConfig", menuName = "Map Radar/Target Config")]
|
|
||||||
public sealed class TargetConfig : ScriptableObject
|
|
||||||
{
|
|
||||||
[Header("Target Prefab")]
|
|
||||||
[SerializeField] private MapTarget targetPrefab = null;
|
|
||||||
|
|
||||||
[Header("Target Stats")]
|
|
||||||
[SerializeField, Min(0f)] private float timeBeforeAttack = 5f;
|
|
||||||
[SerializeField, Min(1)] private int health = 100;
|
|
||||||
[SerializeField] private MissileType requiredMissileType = MissileType.Standard;
|
|
||||||
|
|
||||||
[Header("Air Target Movement")]
|
|
||||||
[SerializeField, Min(0f)] private float movementSpeed = 1f;
|
|
||||||
[SerializeField, Min(0f)] private float stoppingDistance = 0.25f;
|
|
||||||
|
|
||||||
public MapTarget TargetPrefab => targetPrefab;
|
|
||||||
public float TimeBeforeAttack => timeBeforeAttack;
|
|
||||||
public int Health => health;
|
|
||||||
public MissileType RequiredMissileType => requiredMissileType;
|
|
||||||
public float MovementSpeed => movementSpeed;
|
|
||||||
public float StoppingDistance => stoppingDistance;
|
|
||||||
|
|
||||||
private void OnValidate()
|
|
||||||
{
|
|
||||||
timeBeforeAttack = Mathf.Max(0f, timeBeforeAttack);
|
|
||||||
health = Mathf.Max(1, health);
|
|
||||||
movementSpeed = Mathf.Max(0f, movementSpeed);
|
|
||||||
stoppingDistance = Mathf.Max(0f, stoppingDistance);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: c4e7ec8e55a847eaa5c7914bf08d1f98
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 01fc6a03af2e2c74a8ef1cd4a6f4ad5e
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!21 &2100000
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Crosshair
|
|
||||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords:
|
|
||||||
- _EMISSION
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 2
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap:
|
|
||||||
RenderType: Opaque
|
|
||||||
disabledShaderPasses:
|
|
||||||
- MOTIONVECTORS
|
|
||||||
m_LockedProperties:
|
|
||||||
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}
|
|
||||||
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: 2800000, guid: 8b6daeadfc1e345a792cbbff1ceeabb9, type: 3}
|
|
||||||
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}
|
|
||||||
- _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: 0
|
|
||||||
- _Metallic: 0.632
|
|
||||||
- _OcclusionStrength: 1
|
|
||||||
- _Parallax: 0.005
|
|
||||||
- _QueueOffset: 0
|
|
||||||
- _ReceiveShadows: 1
|
|
||||||
- _Smoothness: 0.106
|
|
||||||
- _SmoothnessTextureChannel: 0
|
|
||||||
- _SpecularHighlights: 1
|
|
||||||
- _SrcBlend: 1
|
|
||||||
- _SrcBlendAlpha: 1
|
|
||||||
- _Surface: 0
|
|
||||||
- _WorkflowMode: 1
|
|
||||||
- _ZWrite: 1
|
|
||||||
m_Colors:
|
|
||||||
- _BaseColor: {r: 0, g: 0.9233861, b: 1, a: 1}
|
|
||||||
- _Color: {r: 0, g: 0.9233861, b: 1, a: 1}
|
|
||||||
- _EmissionColor: {r: 0.15221034, g: 1.493739, b: 1.5365998, a: 1}
|
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
m_AllowLocking: 1
|
|
||||||
--- !u!114 &3289058871599513036
|
|
||||||
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:
|
|
||||||
version: 10
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 22474510b3d8cc048bb0bc8679862784
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 2100000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!21 &2100000
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: MapPlayer
|
|
||||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords:
|
|
||||||
- _EMISSION
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 2
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap:
|
|
||||||
RenderType: Opaque
|
|
||||||
disabledShaderPasses:
|
|
||||||
- MOTIONVECTORS
|
|
||||||
m_LockedProperties:
|
|
||||||
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}
|
|
||||||
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: 2800000, guid: 2b2440b1910ed4bb6a835e2d074a9865, type: 3}
|
|
||||||
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}
|
|
||||||
- _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: 0
|
|
||||||
- _Metallic: 0.632
|
|
||||||
- _OcclusionStrength: 1
|
|
||||||
- _Parallax: 0.005
|
|
||||||
- _QueueOffset: 0
|
|
||||||
- _ReceiveShadows: 1
|
|
||||||
- _Smoothness: 0.106
|
|
||||||
- _SmoothnessTextureChannel: 0
|
|
||||||
- _SpecularHighlights: 1
|
|
||||||
- _SrcBlend: 1
|
|
||||||
- _SrcBlendAlpha: 1
|
|
||||||
- _Surface: 0
|
|
||||||
- _WorkflowMode: 1
|
|
||||||
- _ZWrite: 1
|
|
||||||
m_Colors:
|
|
||||||
- _BaseColor: {r: 0, g: 0.0816164, b: 1, a: 1}
|
|
||||||
- _Color: {r: 0, g: 0.08161638, b: 1, a: 1}
|
|
||||||
- _EmissionColor: {r: 0, g: 0.23383103, b: 2.7913604, a: 1}
|
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
m_AllowLocking: 1
|
|
||||||
--- !u!114 &3289058871599513036
|
|
||||||
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:
|
|
||||||
version: 10
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b27d30c59586fb4499180239a9bd64f1
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 2100000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,117 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 71c6f8835ecab4c489ead4e40a5aafef
|
|
||||||
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: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID: 5e97eb03825dee720800000000000000
|
|
||||||
internalID: 0
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!21 &2100000
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Target
|
|
||||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords:
|
|
||||||
- _EMISSION
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 2
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap:
|
|
||||||
RenderType: Opaque
|
|
||||||
disabledShaderPasses:
|
|
||||||
- MOTIONVECTORS
|
|
||||||
m_LockedProperties:
|
|
||||||
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}
|
|
||||||
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: 2800000, guid: 8b6daeadfc1e345a792cbbff1ceeabb9, type: 3}
|
|
||||||
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}
|
|
||||||
- _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: 0
|
|
||||||
- _Metallic: 0.632
|
|
||||||
- _OcclusionStrength: 1
|
|
||||||
- _Parallax: 0.005
|
|
||||||
- _QueueOffset: 0
|
|
||||||
- _ReceiveShadows: 1
|
|
||||||
- _Smoothness: 0.106
|
|
||||||
- _SmoothnessTextureChannel: 0
|
|
||||||
- _SpecularHighlights: 1
|
|
||||||
- _SrcBlend: 1
|
|
||||||
- _SrcBlendAlpha: 1
|
|
||||||
- _Surface: 0
|
|
||||||
- _WorkflowMode: 1
|
|
||||||
- _ZWrite: 1
|
|
||||||
m_Colors:
|
|
||||||
- _BaseColor: {r: 1, g: 0, b: 0.050980568, a: 1}
|
|
||||||
- _Color: {r: 1, g: 0, b: 0.050980546, a: 1}
|
|
||||||
- _EmissionColor: {r: 2.0907834, 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 &3289058871599513036
|
|
||||||
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:
|
|
||||||
version: 10
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: c57515654cf43eb4995ae19964d2ca0b
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 2100000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &-4452286349835602218
|
|
||||||
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:
|
|
||||||
version: 10
|
|
||||||
--- !u!21 &2100000
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Test
|
|
||||||
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_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap:
|
|
||||||
RenderType: Opaque
|
|
||||||
disabledShaderPasses:
|
|
||||||
- MOTIONVECTORS
|
|
||||||
m_LockedProperties:
|
|
||||||
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}
|
|
||||||
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}
|
|
||||||
- _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: 0
|
|
||||||
- _Metallic: 0
|
|
||||||
- _OcclusionStrength: 1
|
|
||||||
- _Parallax: 0.005
|
|
||||||
- _QueueOffset: 0
|
|
||||||
- _ReceiveShadows: 1
|
|
||||||
- _Smoothness: 0
|
|
||||||
- _SmoothnessTextureChannel: 1
|
|
||||||
- _SpecularHighlights: 1
|
|
||||||
- _SrcBlend: 1
|
|
||||||
- _SrcBlendAlpha: 1
|
|
||||||
- _Surface: 0
|
|
||||||
- _WorkflowMode: 1
|
|
||||||
- _ZWrite: 1
|
|
||||||
m_Colors:
|
|
||||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
- _Color: {r: 1, g: 1, b: 1, 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
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 0b8e0a594b1c84542b029378c039338e
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 2100000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -16,21 +16,15 @@ MonoBehaviour:
|
|||||||
spawnCooldown: 10
|
spawnCooldown: 10
|
||||||
localVelocityChange: {x: 0, y: -5, z: 0}
|
localVelocityChange: {x: 0, y: -5, z: 0}
|
||||||
guaranteedItems:
|
guaranteedItems:
|
||||||
- prefab: {fileID: 8351909960905108939, guid: 6eee6df5dab550446b41008fa6fff89a, type: 3}
|
- prefab: {fileID: 4504260422113134419, guid: 8790cd6f776403940ac664c5db12dab4, type: 3}
|
||||||
amount: 1
|
|
||||||
- prefab: {fileID: 6752047176419627530, guid: 8cc9c4d7d9e04d640bbd0616e7926670, type: 3}
|
|
||||||
amount: 1
|
amount: 1
|
||||||
randomItemCount: 7
|
randomItemCount: 7
|
||||||
randomItems:
|
randomItems:
|
||||||
- prefab: {fileID: 4609832768900680681, guid: 5cf4d9e867c084847ba82c56bddc456b, type: 3}
|
- prefab: {fileID: 2474374521670934351, guid: c91d2337125ccaf45a0c57af9a6703c8, type: 3}
|
||||||
weight: 1
|
weight: 1
|
||||||
- prefab: {fileID: 9206541098482503491, guid: 29519dc5d2cfae441b261f3ca68f2290, type: 3}
|
- prefab: {fileID: 4728426142119307488, guid: 795e138cd804c7c42aa508895e6a61df, type: 3}
|
||||||
weight: 1
|
weight: 1
|
||||||
- prefab: {fileID: 8351909960905108939, guid: 6eee6df5dab550446b41008fa6fff89a, type: 3}
|
- prefab: {fileID: 4504260422113134419, guid: 8790cd6f776403940ac664c5db12dab4, type: 3}
|
||||||
weight: 0.3
|
weight: 3
|
||||||
- prefab: {fileID: 6752047176419627530, guid: 8cc9c4d7d9e04d640bbd0616e7926670, type: 3}
|
|
||||||
weight: 0.3
|
|
||||||
- prefab: {fileID: 3256751277309890899, guid: 04a6d9d9e28782a4a9f8f71ce4438fc0, type: 3}
|
|
||||||
weight: 1.5
|
|
||||||
randomSpawnX: 1
|
randomSpawnX: 1
|
||||||
randomSpawnZ: 1
|
randomSpawnZ: 1
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
using System;
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Unity.Netcode;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.InputSystem;
|
||||||
|
|
||||||
[RequireComponent(typeof(NetworkObject))]
|
public class ItemPipe : MonoBehaviour
|
||||||
public sealed class ItemPipe : NetworkBehaviour
|
|
||||||
{
|
{
|
||||||
[Header("Pipe")]
|
[Header("Pipe")]
|
||||||
[SerializeField] private Transform spawnPoint;
|
[SerializeField] private Transform spawnPoint;
|
||||||
@@ -13,192 +11,84 @@ public sealed class ItemPipe : NetworkBehaviour
|
|||||||
[Header("Configuration")]
|
[Header("Configuration")]
|
||||||
[SerializeField] private ItemPipeConfig config;
|
[SerializeField] private ItemPipeConfig config;
|
||||||
|
|
||||||
private readonly NetworkVariable<bool> spawnSequenceActive = new(
|
[Header("Temporary testing")]
|
||||||
false,
|
[SerializeField] private bool spawnOnE = true;
|
||||||
NetworkVariableReadPermission.Everyone,
|
|
||||||
NetworkVariableWritePermission.Server);
|
|
||||||
|
|
||||||
private readonly NetworkVariable<double> cooldownEndsAt = new(
|
private bool isSpawning;
|
||||||
0d,
|
|
||||||
NetworkVariableReadPermission.Everyone,
|
|
||||||
NetworkVariableWritePermission.Server);
|
|
||||||
|
|
||||||
private Coroutine spawnRoutine;
|
|
||||||
|
|
||||||
public float CooldownDuration => config != null ? config.SpawnCooldown : 0f;
|
public float CooldownDuration => config != null ? config.SpawnCooldown : 0f;
|
||||||
public float CooldownRemaining
|
public float CooldownRemaining { get; private set; }
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
double now = NetworkManager != null
|
|
||||||
? NetworkManager.ServerTime.Time
|
|
||||||
: Time.timeAsDouble;
|
|
||||||
return Mathf.Max(0f, (float)(cooldownEndsAt.Value - now));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public int CooldownSecondsRemaining => Mathf.CeilToInt(CooldownRemaining);
|
public int CooldownSecondsRemaining => Mathf.CeilToInt(CooldownRemaining);
|
||||||
public bool IsSpawning => spawnSequenceActive.Value;
|
public bool CanSpawnItems => config != null && !isSpawning && CooldownRemaining <= 0f;
|
||||||
public bool CanSpawnItems =>
|
|
||||||
IsSpawned &&
|
|
||||||
config != null &&
|
|
||||||
!spawnSequenceActive.Value &&
|
|
||||||
CooldownRemaining <= 0f;
|
|
||||||
|
|
||||||
public event Action Changed;
|
private void Update()
|
||||||
|
|
||||||
private void Reset() => spawnPoint = transform;
|
|
||||||
|
|
||||||
public override void OnNetworkSpawn()
|
|
||||||
{
|
{
|
||||||
spawnSequenceActive.OnValueChanged += HandleSpawnStateChanged;
|
if (CooldownRemaining > 0f)
|
||||||
cooldownEndsAt.OnValueChanged += HandleCooldownChanged;
|
CooldownRemaining = Mathf.Max(0f, CooldownRemaining - Time.deltaTime);
|
||||||
|
|
||||||
if (IsServer)
|
if (!spawnOnE || Keyboard.current == null)
|
||||||
{
|
return;
|
||||||
spawnSequenceActive.Value = false;
|
|
||||||
cooldownEndsAt.Value = 0d;
|
if (Keyboard.current.eKey.wasPressedThisFrame)
|
||||||
|
SpawnItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
Changed?.Invoke();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnNetworkDespawn()
|
|
||||||
{
|
|
||||||
spawnSequenceActive.OnValueChanged -= HandleSpawnStateChanged;
|
|
||||||
cooldownEndsAt.OnValueChanged -= HandleCooldownChanged;
|
|
||||||
|
|
||||||
if (spawnRoutine != null)
|
|
||||||
{
|
|
||||||
StopCoroutine(spawnRoutine);
|
|
||||||
spawnRoutine = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Starts one configured batch. Safe to connect directly to a Button or UnityEvent.
|
|
||||||
/// Calls made on a client are forwarded to the server.
|
|
||||||
/// </summary>
|
|
||||||
public void SpawnItems()
|
public void SpawnItems()
|
||||||
{
|
{
|
||||||
if (!IsSpawned)
|
if (!CanSpawnItems)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (IsServer)
|
StartCoroutine(SpawnSequence(config));
|
||||||
TryStartSpawnSequenceOnServer();
|
|
||||||
else
|
|
||||||
RequestSpawnItemsRpc();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
private IEnumerator SpawnSequence(ItemPipeConfig activeConfig)
|
||||||
/// UnityEvent<bool> adapter for a lever. Only the true edge starts a batch;
|
|
||||||
/// returning a momentary lever to false does not cancel the current batch.
|
|
||||||
/// </summary>
|
|
||||||
public void SpawnItems(bool activated)
|
|
||||||
{
|
{
|
||||||
if (activated)
|
isSpawning = true;
|
||||||
SpawnItems();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Starts while true and cancels the current batch while false. Use this when
|
|
||||||
/// the lever position must control whether the pipe is allowed to keep running.
|
|
||||||
/// </summary>
|
|
||||||
public void SetSpawning(bool shouldSpawn)
|
|
||||||
{
|
|
||||||
if (shouldSpawn)
|
|
||||||
SpawnItems();
|
|
||||||
else
|
|
||||||
StopSpawning();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void StopSpawning()
|
|
||||||
{
|
|
||||||
if (!IsSpawned)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (IsServer)
|
|
||||||
StopSpawnSequenceOnServer(applyCooldown: true);
|
|
||||||
else
|
|
||||||
RequestStopSpawningRpc();
|
|
||||||
}
|
|
||||||
|
|
||||||
[Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Everyone)]
|
|
||||||
private void RequestSpawnItemsRpc() => TryStartSpawnSequenceOnServer();
|
|
||||||
|
|
||||||
[Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Everyone)]
|
|
||||||
private void RequestStopSpawningRpc() =>
|
|
||||||
StopSpawnSequenceOnServer(applyCooldown: true);
|
|
||||||
|
|
||||||
private bool TryStartSpawnSequenceOnServer()
|
|
||||||
{
|
|
||||||
if (!IsServer || !CanSpawnItems)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
spawnSequenceActive.Value = true;
|
|
||||||
spawnRoutine = StartCoroutine(SpawnSequenceOnServer(config));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private IEnumerator SpawnSequenceOnServer(ItemPipeConfig activeConfig)
|
|
||||||
{
|
|
||||||
List<GameObject> spawnQueue = BuildSpawnQueue(activeConfig);
|
List<GameObject> spawnQueue = BuildSpawnQueue(activeConfig);
|
||||||
|
|
||||||
for (int index = 0; index < spawnQueue.Count; index++)
|
for (int i = 0; i < spawnQueue.Count; i++)
|
||||||
{
|
{
|
||||||
SpawnNetworkItemOnServer(spawnQueue[index], activeConfig);
|
Spawn(spawnQueue[i], activeConfig);
|
||||||
|
|
||||||
if (index < spawnQueue.Count - 1)
|
if (i < spawnQueue.Count - 1)
|
||||||
yield return new WaitForSeconds(activeConfig.SpawnInterval);
|
yield return new WaitForSeconds(activeConfig.SpawnInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
spawnRoutine = null;
|
isSpawning = false;
|
||||||
cooldownEndsAt.Value =
|
CooldownRemaining = activeConfig.SpawnCooldown;
|
||||||
NetworkManager.ServerTime.Time + activeConfig.SpawnCooldown;
|
|
||||||
spawnSequenceActive.Value = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StopSpawnSequenceOnServer(bool applyCooldown)
|
private List<GameObject> BuildSpawnQueue(ItemPipeConfig activeConfig)
|
||||||
{
|
|
||||||
if (!IsServer || !spawnSequenceActive.Value)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (spawnRoutine != null)
|
|
||||||
{
|
|
||||||
StopCoroutine(spawnRoutine);
|
|
||||||
spawnRoutine = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
cooldownEndsAt.Value = applyCooldown && config != null
|
|
||||||
? NetworkManager.ServerTime.Time + config.SpawnCooldown
|
|
||||||
: 0d;
|
|
||||||
spawnSequenceActive.Value = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static List<GameObject> BuildSpawnQueue(ItemPipeConfig activeConfig)
|
|
||||||
{
|
{
|
||||||
List<GameObject> queue = new();
|
List<GameObject> queue = new();
|
||||||
|
|
||||||
|
// Добавляем предметы в точном количестве.
|
||||||
foreach (ItemPipeConfig.GuaranteedItem item in activeConfig.GuaranteedItems)
|
foreach (ItemPipeConfig.GuaranteedItem item in activeConfig.GuaranteedItems)
|
||||||
{
|
{
|
||||||
if (item.prefab == null)
|
if (item.prefab == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (int index = 0; index < item.amount; index++)
|
for (int i = 0; i < item.amount; i++)
|
||||||
queue.Add(item.prefab);
|
queue.Add(item.prefab);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int index = 0; index < activeConfig.RandomItemCount; index++)
|
// Выбираем указанное количество случайных предметов.
|
||||||
|
for (int i = 0; i < activeConfig.RandomItemCount; i++)
|
||||||
{
|
{
|
||||||
GameObject selectedPrefab = ChooseWeightedRandom(activeConfig);
|
GameObject selectedPrefab = ChooseWeightedRandom(activeConfig);
|
||||||
|
|
||||||
if (selectedPrefab != null)
|
if (selectedPrefab != null)
|
||||||
queue.Add(selectedPrefab);
|
queue.Add(selectedPrefab);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Перемешиваем гарантированные и случайные предметы вместе.
|
||||||
Shuffle(queue);
|
Shuffle(queue);
|
||||||
|
|
||||||
return queue;
|
return queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static GameObject ChooseWeightedRandom(ItemPipeConfig activeConfig)
|
private GameObject ChooseWeightedRandom(ItemPipeConfig activeConfig)
|
||||||
{
|
{
|
||||||
float totalWeight = 0f;
|
float totalWeight = 0f;
|
||||||
|
|
||||||
@@ -211,81 +101,64 @@ public sealed class ItemPipe : NetworkBehaviour
|
|||||||
if (totalWeight <= 0f)
|
if (totalWeight <= 0f)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
float roll = UnityEngine.Random.value * totalWeight;
|
float roll = Random.value * totalWeight;
|
||||||
float accumulatedWeight = 0f;
|
float currentWeight = 0f;
|
||||||
|
|
||||||
foreach (ItemPipeConfig.RandomItem item in activeConfig.RandomItems)
|
foreach (ItemPipeConfig.RandomItem item in activeConfig.RandomItems)
|
||||||
{
|
{
|
||||||
if (item.prefab == null || item.weight <= 0f)
|
if (item.prefab == null || item.weight <= 0f)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
accumulatedWeight += item.weight;
|
currentWeight += item.weight;
|
||||||
if (roll < accumulatedWeight)
|
|
||||||
|
if (roll < currentWeight)
|
||||||
return item.prefab;
|
return item.prefab;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Shuffle(List<GameObject> queue)
|
private void Shuffle(List<GameObject> queue)
|
||||||
{
|
{
|
||||||
for (int index = queue.Count - 1; index > 0; index--)
|
for (int i = queue.Count - 1; i > 0; i--)
|
||||||
{
|
{
|
||||||
int randomIndex = UnityEngine.Random.Range(0, index + 1);
|
int randomIndex = Random.Range(0, i + 1);
|
||||||
(queue[index], queue[randomIndex]) =
|
|
||||||
(queue[randomIndex], queue[index]);
|
(queue[i], queue[randomIndex]) =
|
||||||
|
(queue[randomIndex], queue[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SpawnNetworkItemOnServer(
|
private void Spawn(GameObject prefab, ItemPipeConfig activeConfig)
|
||||||
GameObject prefab,
|
|
||||||
ItemPipeConfig activeConfig)
|
|
||||||
{
|
{
|
||||||
Transform activeSpawnPoint = spawnPoint != null ? spawnPoint : transform;
|
if (prefab == null || spawnPoint == null)
|
||||||
if (prefab == null)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float offsetX = UnityEngine.Random.Range(
|
float offsetX = RandomRange(-activeConfig.RandomSpawnX, activeConfig.RandomSpawnX);
|
||||||
-activeConfig.RandomSpawnX,
|
float offsetZ = RandomRange(-activeConfig.RandomSpawnZ, activeConfig.RandomSpawnZ);
|
||||||
activeConfig.RandomSpawnX);
|
|
||||||
float offsetZ = UnityEngine.Random.Range(
|
|
||||||
-activeConfig.RandomSpawnZ,
|
|
||||||
activeConfig.RandomSpawnZ);
|
|
||||||
Vector3 spawnPosition =
|
Vector3 spawnPosition =
|
||||||
activeSpawnPoint.position +
|
spawnPoint.position +
|
||||||
activeSpawnPoint.right * offsetX +
|
spawnPoint.right * offsetX +
|
||||||
activeSpawnPoint.forward * offsetZ;
|
spawnPoint.forward * offsetZ;
|
||||||
|
|
||||||
GameObject item = Instantiate(
|
GameObject item = Instantiate(
|
||||||
prefab,
|
prefab,
|
||||||
spawnPosition,
|
spawnPosition,
|
||||||
UnityEngine.Random.rotationUniform);
|
Random.rotationUniform
|
||||||
|
);
|
||||||
if (!item.TryGetComponent(out NetworkObject networkObject))
|
|
||||||
{
|
|
||||||
Debug.LogError(
|
|
||||||
$"{name} cannot spawn '{prefab.name}': the prefab has no NetworkObject.",
|
|
||||||
this);
|
|
||||||
Destroy(item);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
networkObject.Spawn();
|
|
||||||
|
|
||||||
if (item.TryGetComponent(out Rigidbody body))
|
if (item.TryGetComponent(out Rigidbody body))
|
||||||
{
|
{
|
||||||
Vector3 worldVelocityChange =
|
Vector3 worldVelocityChange =
|
||||||
activeSpawnPoint.TransformDirection(activeConfig.LocalVelocityChange);
|
spawnPoint.TransformDirection(activeConfig.LocalVelocityChange);
|
||||||
|
|
||||||
body.AddForce(worldVelocityChange, ForceMode.VelocityChange);
|
body.AddForce(worldVelocityChange, ForceMode.VelocityChange);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleSpawnStateChanged(bool _, bool __) => Changed?.Invoke();
|
private float RandomRange(float min, float max)
|
||||||
private void HandleCooldownChanged(double _, double __) => Changed?.Invoke();
|
{
|
||||||
|
return Random.Range(min, max);
|
||||||
[ContextMenu("Debug/Spawn Batch (Network Play Mode)")]
|
}
|
||||||
private void DebugSpawnBatch() => SpawnItems();
|
|
||||||
|
|
||||||
[ContextMenu("Debug/Stop Batch (Network Play Mode)")]
|
|
||||||
private void DebugStopBatch() => StopSpawning();
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ GameObject:
|
|||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 286431562970531899}
|
- component: {fileID: 286431562970531899}
|
||||||
- component: {fileID: 641239187450981236}
|
|
||||||
- component: {fileID: 4539542294833622770}
|
- component: {fileID: 4539542294833622770}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: SpawnJunk
|
m_Name: SpawnJunk
|
||||||
@@ -33,32 +32,6 @@ Transform:
|
|||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!114 &641239187450981236
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1621409648607792275}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
GlobalObjectIdHash: 0
|
|
||||||
InScenePlacedSourceGlobalObjectIdHash: 0
|
|
||||||
DeferredDespawnTick: 0
|
|
||||||
Ownership: 1
|
|
||||||
AlwaysReplicateAsRoot: 0
|
|
||||||
SynchronizeTransform: 0
|
|
||||||
m_InScenePlaced: 1
|
|
||||||
ActiveSceneSynchronization: 0
|
|
||||||
SceneMigrationSynchronization: 0
|
|
||||||
SpawnWithObservers: 1
|
|
||||||
DontDestroyWithOwner: 0
|
|
||||||
AutoObjectParentSync: 1
|
|
||||||
SyncOwnerTransformWhenParented: 1
|
|
||||||
AllowOwnerToParent: 0
|
|
||||||
--- !u!114 &4539542294833622770
|
--- !u!114 &4539542294833622770
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -73,3 +46,4 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
spawnPoint: {fileID: 286431562970531899}
|
spawnPoint: {fileID: 286431562970531899}
|
||||||
config: {fileID: 11400000, guid: 3883e23238f84f748e616770b66fa885, type: 2}
|
config: {fileID: 11400000, guid: 3883e23238f84f748e616770b66fa885, type: 2}
|
||||||
|
spawnOnE: 1
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ MonoBehaviour:
|
|||||||
ScaleMaxInterpolationTime: 0.1
|
ScaleMaxInterpolationTime: 0.1
|
||||||
AuthorityMode: 1
|
AuthorityMode: 1
|
||||||
TickSyncChildren: 0
|
TickSyncChildren: 0
|
||||||
UseUnreliableDeltas: 1
|
UseUnreliableDeltas: 0
|
||||||
SyncPositionX: 1
|
SyncPositionX: 1
|
||||||
SyncPositionY: 1
|
SyncPositionY: 1
|
||||||
SyncPositionZ: 1
|
SyncPositionZ: 1
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: bdc0e5a6ddbfb0e4690d8e85084966fd
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 5e549a32512e7674b82971da82d9cc61
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: b0c79cebdb4201743be8612545ee180e, type: 3}
|
|
||||||
m_Name: Fish
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
itemId: fish
|
|
||||||
displayName: Fish
|
|
||||||
category: 0
|
|
||||||
worldPrefab: {fileID: 6820144355512337958, guid: 04a6d9d9e28782a4a9f8f71ce4438fc0, type: 3}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: f24c01151fded9c4cb5789c9a2a60268
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: 0928368adb57acb4987bb8fabda3a927, type: 3}
|
|
||||||
m_Name: ItemCatalog
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
items:
|
|
||||||
- {fileID: 11400000, guid: dc1f8087c2120614fa0ddcf92cde7f0d, type: 2}
|
|
||||||
- {fileID: 11400000, guid: 28dfa90ac37ac884d84b4f3754b33546, type: 2}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: c367b3d51191b6342ace822007172950
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: b0c79cebdb4201743be8612545ee180e, type: 3}
|
|
||||||
m_Name: MetalPlate
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
itemId: metal_plate
|
|
||||||
displayName: Metal Plate
|
|
||||||
category: 1
|
|
||||||
worldPrefab: {fileID: 2888887303011377321, guid: 29519dc5d2cfae441b261f3ca68f2290, type: 3}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 5887c6bd676db1e4eb497e4ac14bc231
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: b0c79cebdb4201743be8612545ee180e, type: 3}
|
|
||||||
m_Name: MetalRod
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
itemId: metal_rod
|
|
||||||
displayName: Metal Rod
|
|
||||||
category: 1
|
|
||||||
worldPrefab: {fileID: 6071798070859371582, guid: 5cf4d9e867c084847ba82c56bddc456b, type: 3}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 4f630a08648639c47b2975160e744ea3
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e6f108b1c62846e49aa2fcf8db4a93a2
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: b0c79cebdb4201743be8612545ee180e, type: 3}
|
|
||||||
m_Name: Rocket-Back-Standart
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
itemId: rocket-back-standart
|
|
||||||
displayName: Rocket-Back-Standart
|
|
||||||
category: 2
|
|
||||||
worldPrefab: {fileID: 8591287727625443167, guid: be54182e751ec4b48b7db90e8598dce1, type: 3}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b9e34349c67bdcf4f9ba3fc7655b9dac
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: b0c79cebdb4201743be8612545ee180e, type: 3}
|
|
||||||
m_Name: Rocket-Base-Avia
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
itemId: rocket-base-avia
|
|
||||||
displayName: Rocket-Base-Avia
|
|
||||||
category: 2
|
|
||||||
worldPrefab: {fileID: 1256934312238460503, guid: 9712e2459410a6d43b55ea9d3847e29a, type: 3}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e6fdb55d6695e0f4a919bcfbc6bf5ab9
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
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: b0c79cebdb4201743be8612545ee180e, type: 3}
|
|
||||||
m_Name: Rocket-Base-Standart
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
itemId: rocket-base-standart
|
|
||||||
displayName: Rocket-Base-Standart
|
|
||||||
category: 2
|
|
||||||
worldPrefab: {fileID: 875723161486981202, guid: 6e681ca5358fff648ba85ae9e494fa77, type: 3}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d3938024cd4dd964e804af02917917b2
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user