mirror of
https://github.com/boudji-ludwig-pett/cnam-geometry-dash.git
synced 2025-04-03 20:08:00 +02:00
feat: start of Stereo Madness level (#42)
Co-authored-by: Djelal BOUDJI <djelal@gmail.com>
This commit is contained in:
parent
7fd8691033
commit
7918d310b6
BIN
Assets/InGame/KillZoneImage.png
Normal file
BIN
Assets/InGame/KillZoneImage.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
143
Assets/InGame/KillZoneImage.png.meta
Normal file
143
Assets/InGame/KillZoneImage.png.meta
Normal file
@ -0,0 +1,143 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dd4610d7d9b8044408246e077691bc42
|
||||
TextureImporter:
|
||||
internalIDToNameTable:
|
||||
- first:
|
||||
213: -5560715151396007323
|
||||
second: obstacle_geometry_dash_0
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
- serializedVersion: 2
|
||||
name: obstacle_geometry_dash_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 177
|
||||
height: 53
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
customData:
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: -1
|
||||
bones: []
|
||||
spriteID: 56298ef180f54d2b0800000000000000
|
||||
internalID: -5560715151396007323
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable:
|
||||
obstacle_geometry_dash_0: -5560715151396007323
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -4,14 +4,158 @@
|
||||
"order": 1,
|
||||
"elements": [
|
||||
{
|
||||
"type": "Obstacle",
|
||||
"x": -6.684000015258789,
|
||||
"y": -2.8970000743865969
|
||||
"type": "Spike",
|
||||
"x": -9.0,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "SmallSpike",
|
||||
"x": 0.20000004768371583,
|
||||
"y": -3.4000000953674318,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "Spike",
|
||||
"x": -3.059999942779541,
|
||||
"y": -2.930000066757202
|
||||
"x": 1.0,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "Spike",
|
||||
"x": 7.0,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "Spike",
|
||||
"x": 8.0,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 9.0,
|
||||
"y": -3.0,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 12.5,
|
||||
"y": -3.0,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 12.5,
|
||||
"y": -2.0,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 16.0,
|
||||
"y": -3.0,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 16.0,
|
||||
"y": -2.0,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 16.0,
|
||||
"y": -1.0,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "Spike",
|
||||
"x": 25.0,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "Spike",
|
||||
"x": 26.0,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "KillZone",
|
||||
"x": 42.0,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "KillZone",
|
||||
"x": 43.70000076293945,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 36.0,
|
||||
"y": -3.0,
|
||||
"scaleX": 2.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 49.70000076293945,
|
||||
"y": -3.0,
|
||||
"scaleX": 2.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "Spike",
|
||||
"x": 49.70000076293945,
|
||||
"y": -2.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "KillZone",
|
||||
"x": 55.70000076293945,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "KillZone",
|
||||
"x": 57.400001525878909,
|
||||
"y": -3.200000047683716,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
},
|
||||
{
|
||||
"type": "ObstacleBloc",
|
||||
"x": 63.400001525878909,
|
||||
"y": -2.299999952316284,
|
||||
"scaleX": 2.0,
|
||||
"scaleY": 0.5
|
||||
},
|
||||
{
|
||||
"type": "Spike",
|
||||
"x": 63.400001525878909,
|
||||
"y": -0.699999988079071,
|
||||
"scaleX": -1.0,
|
||||
"scaleY": -1.0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
136
Assets/Resources/Prefabs/KillZone.prefab
Normal file
136
Assets/Resources/Prefabs/KillZone.prefab
Normal file
@ -0,0 +1,136 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &3303019787601773946
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8145151656722207896}
|
||||
- component: {fileID: 8945696570255837577}
|
||||
- component: {fileID: 6873087963452101195}
|
||||
m_Layer: 0
|
||||
m_Name: KillZone
|
||||
m_TagString: Kill
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &8145151656722207896
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3303019787601773946}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -1.198476, y: -3.2, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1.2, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &8945696570255837577
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3303019787601773946}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||
m_RayTracingAccelStructBuildFlags: 1
|
||||
m_SmallMeshCulling: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
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: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: -5560715151396007323, guid: dd4610d7d9b8044408246e077691bc42, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 1.77, y: 0.53}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!61 &6873087963452101195
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3303019787601773946}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 1.77, y: 0.53}
|
||||
newSize: {x: 1.77, y: 0.53}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 1.77, y: 0.53}
|
||||
m_EdgeRadius: 0
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ded5ba9868ed45d64adf56ff6f9f8d80
|
||||
guid: 1a584e4b0804402409437bd308422f32
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
@ -1,6 +1,6 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &4503133877144714992
|
||||
--- !u!1 &1790982024455392374
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -8,39 +8,39 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5012884470156408499}
|
||||
- component: {fileID: 8308996464851343268}
|
||||
- component: {fileID: 8817250240787629228}
|
||||
- component: {fileID: 2237815875453143941}
|
||||
m_Layer: 0
|
||||
m_Name: Obstacle
|
||||
m_Name: ObstacleBloc
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5012884470156408499
|
||||
--- !u!4 &8817250240787629228
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4503133877144714992}
|
||||
m_GameObject: {fileID: 1790982024455392374}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.684, y: -2.897, z: 0}
|
||||
m_LocalScale: {x: 0.96055, y: 0.2326, z: 1}
|
||||
m_LocalPosition: {x: -11.511677, y: -3.178352, z: 0}
|
||||
m_LocalScale: {x: 0.2, y: 0.2, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 753406095052540359}
|
||||
- {fileID: 3772212889498300441}
|
||||
- {fileID: 8663662970111901296}
|
||||
- {fileID: 6149087321496611903}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &8308996464851343268
|
||||
--- !u!212 &2237815875453143941
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4503133877144714992}
|
||||
m_GameObject: {fileID: 1790982024455392374}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
@ -89,7 +89,7 @@ SpriteRenderer:
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!1 &5192728607521336247
|
||||
--- !u!1 &1882526919763485512
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -97,86 +97,8 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 753406095052540359}
|
||||
- component: {fileID: 4745569766689628624}
|
||||
m_Layer: 0
|
||||
m_Name: ObstacleSafer
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &753406095052540359
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5192728607521336247}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5012884470156408499}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!61 &4745569766689628624
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5192728607521336247}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: -0.004009247, y: 1.7748187}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0, y: 0}
|
||||
oldSize: {x: 0, y: 0}
|
||||
newSize: {x: 0, y: 0}
|
||||
adaptiveTilingThreshold: 0
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 5.121194, y: 1.4569769}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!1 &7427412648610411495
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3772212889498300441}
|
||||
- component: {fileID: 8331097993010127203}
|
||||
- component: {fileID: 6149087321496611903}
|
||||
- component: {fileID: 7507909787795606721}
|
||||
m_Layer: 0
|
||||
m_Name: ObstacleKiller
|
||||
m_TagString: Kill
|
||||
@ -184,28 +106,28 @@ GameObject:
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3772212889498300441
|
||||
--- !u!4 &6149087321496611903
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7427412648610411495}
|
||||
m_GameObject: {fileID: 1882526919763485512}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5012884470156408499}
|
||||
m_Father: {fileID: 8817250240787629228}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!61 &8331097993010127203
|
||||
--- !u!61 &7507909787795606721
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7427412648610411495}
|
||||
m_GameObject: {fileID: 1882526919763485512}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
@ -245,3 +167,81 @@ BoxCollider2D:
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 5.1211915, y: 2.672097}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!1 &4179475610744468388
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8663662970111901296}
|
||||
- component: {fileID: 168714429622599452}
|
||||
m_Layer: 0
|
||||
m_Name: ObstacleSafer
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &8663662970111901296
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4179475610744468388}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8817250240787629228}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!61 &168714429622599452
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4179475610744468388}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: -0.004009247, y: 1.7748187}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0, y: 0}
|
||||
oldSize: {x: 0, y: 0}
|
||||
newSize: {x: 0, y: 0}
|
||||
adaptiveTilingThreshold: 0
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Size: {x: 5.121194, y: 1.4569769}
|
||||
m_EdgeRadius: 0
|
7
Assets/Resources/Prefabs/ObstacleBloc.prefab.meta
Normal file
7
Assets/Resources/Prefabs/ObstacleBloc.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3b4ca5c432a93494a8a9e48bb0508895
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
197
Assets/Resources/Prefabs/SmallSpike.prefab
Normal file
197
Assets/Resources/Prefabs/SmallSpike.prefab
Normal file
@ -0,0 +1,197 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &5502732007395363677
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1401542451836727739}
|
||||
- component: {fileID: 2559451938602690220}
|
||||
- component: {fileID: 7239319486350951539}
|
||||
m_Layer: 0
|
||||
m_Name: SmallSpike
|
||||
m_TagString: Kill
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1401542451836727739
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5502732007395363677}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.8, y: -3.4, z: 0}
|
||||
m_LocalScale: {x: 0.091284685, y: 0.024152879, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &2559451938602690220
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5502732007395363677}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
||||
m_RayTracingAccelStructBuildFlags: 1
|
||||
m_SmallMeshCulling: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
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: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: 5761849248444590345, guid: 23159a719d47ecd4ea9ccf80790555c2, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 8.39, y: 9.62}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!60 &7239319486350951539
|
||||
PolygonCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5502732007395363677}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_CompositeOperation: 0
|
||||
m_CompositeOrder: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 8.39, y: 9.62}
|
||||
newSize: {x: 8.39, y: 9.62}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
m_Points:
|
||||
m_Paths:
|
||||
- - {x: 4.185, y: -3.99}
|
||||
- {x: 4.185, y: -3.81}
|
||||
- {x: 4.1549997, y: -3.7099998}
|
||||
- {x: 4.085, y: -3.56}
|
||||
- {x: 3.965, y: -3.29}
|
||||
- {x: 3.665, y: -2.62}
|
||||
- {x: 2.605, y: -0.24}
|
||||
- {x: 1.5949999, y: 2.03}
|
||||
- {x: 0.615, y: 4.23}
|
||||
- {x: 0.445, y: 4.61}
|
||||
- {x: 0.345, y: 4.74}
|
||||
- {x: 0.24499999, y: 4.7799997}
|
||||
- {x: 0.205, y: 4.79}
|
||||
- {x: 0.055, y: 4.79}
|
||||
- {x: -0.074999996, y: 4.73}
|
||||
- {x: -0.145, y: 4.66}
|
||||
- {x: -0.205, y: 4.5499997}
|
||||
- {x: -0.53499997, y: 3.86}
|
||||
- {x: -0.655, y: 3.61}
|
||||
- {x: -0.755, y: 3.3999999}
|
||||
- {x: -0.865, y: 3.1699998}
|
||||
- {x: -0.865, y: 3.1499999}
|
||||
- {x: -1.0849999, y: 2.71}
|
||||
- {x: -1.295, y: 2.27}
|
||||
- {x: -1.405, y: 2.04}
|
||||
- {x: -1.505, y: 1.8299999}
|
||||
- {x: -2.715, y: -0.7}
|
||||
- {x: -2.715, y: -0.71999997}
|
||||
- {x: -2.935, y: -1.16}
|
||||
- {x: -3.0149999, y: -1.3299999}
|
||||
- {x: -3.215, y: -1.75}
|
||||
- {x: -3.335, y: -2}
|
||||
- {x: -3.995, y: -3.3799999}
|
||||
- {x: -4.125, y: -3.6499999}
|
||||
- {x: -4.1549997, y: -3.6999998}
|
||||
- {x: -4.185, y: -3.78}
|
||||
- {x: -4.185, y: -3.98}
|
||||
- {x: -4.085, y: -4.13}
|
||||
- {x: -4.005, y: -4.17}
|
||||
- {x: -3.915, y: -4.21}
|
||||
- {x: -3.7549999, y: -4.2}
|
||||
- {x: -3.735, y: -4.17}
|
||||
- {x: -2.705, y: -4.17}
|
||||
- {x: -2.695, y: -4.18}
|
||||
- {x: -1.615, y: -4.18}
|
||||
- {x: -1.605, y: -4.19}
|
||||
- {x: -0.78499997, y: -4.19}
|
||||
- {x: -0.775, y: -4.2}
|
||||
- {x: 0.24499999, y: -4.2}
|
||||
- {x: 0.255, y: -4.21}
|
||||
- {x: 1.355, y: -4.21}
|
||||
- {x: 1.365, y: -4.22}
|
||||
- {x: 2.435, y: -4.22}
|
||||
- {x: 2.445, y: -4.23}
|
||||
- {x: 3.5049999, y: -4.23}
|
||||
- {x: 3.5149999, y: -4.24}
|
||||
- {x: 3.865, y: -4.24}
|
||||
- {x: 3.955, y: -4.22}
|
||||
- {x: 4.045, y: -4.18}
|
||||
- {x: 4.1549997, y: -4.08}
|
||||
m_UseDelaunayMesh: 0
|
7
Assets/Resources/Prefabs/SmallSpike.prefab.meta
Normal file
7
Assets/Resources/Prefabs/SmallSpike.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 328a6917309b34a4dbc0113faad99599
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,6 +1,6 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &7777828896977100680
|
||||
--- !u!1 &3517635612602830264
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -8,9 +8,9 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8115733835563602594}
|
||||
- component: {fileID: 4668755637508042186}
|
||||
- component: {fileID: 5986636574179340540}
|
||||
- component: {fileID: 7215742951984187912}
|
||||
- component: {fileID: 5356060014974583179}
|
||||
- component: {fileID: 4888909563487497377}
|
||||
m_Layer: 0
|
||||
m_Name: Spike
|
||||
m_TagString: Kill
|
||||
@ -18,28 +18,28 @@ GameObject:
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &8115733835563602594
|
||||
--- !u!4 &7215742951984187912
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7777828896977100680}
|
||||
m_GameObject: {fileID: 3517635612602830264}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -3.06, y: -2.93, z: 0}
|
||||
m_LocalScale: {x: 0.15, y: 0.15, z: 1}
|
||||
m_LocalPosition: {x: -12.5657, y: -3.1584, z: 0}
|
||||
m_LocalScale: {x: 0.09923127, y: 0.074616805, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &4668755637508042186
|
||||
--- !u!212 &5356060014974583179
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7777828896977100680}
|
||||
m_GameObject: {fileID: 3517635612602830264}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
@ -88,13 +88,13 @@ SpriteRenderer:
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!60 &5986636574179340540
|
||||
--- !u!60 &4888909563487497377
|
||||
PolygonCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7777828896977100680}
|
||||
m_GameObject: {fileID: 3517635612602830264}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Density: 1
|
||||
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6106ddf26cd56b5ceb9034abdb003e42
|
||||
guid: 8de2a8abb160fad45bd4a9b9b8432900
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
@ -5085,7 +5085,7 @@ Transform:
|
||||
m_GameObject: {fileID: 1011717286}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0.06, y: -0.01, z: 100}
|
||||
m_LocalPosition: {x: 0.04, y: -0.09, z: 100}
|
||||
m_LocalScale: {x: 5.1, y: 5.1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@ -5493,8 +5493,6 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
levelsLoader: {fileID: 0}
|
||||
audioSource: {fileID: 1999482188}
|
||||
obstaclePrefab: {fileID: 0}
|
||||
spikePrefab: {fileID: 0}
|
||||
--- !u!4 &1999482187
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -9,6 +9,8 @@ public class LevelElement
|
||||
public string type;
|
||||
public float x;
|
||||
public float y;
|
||||
public float scaleX = -1;
|
||||
public float scaleY = -1;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
|
@ -23,7 +23,13 @@ public class LevelLoader : MonoBehaviour
|
||||
foreach (var element in current.elements)
|
||||
{
|
||||
GameObject prefab = GetPrefab(element.type);
|
||||
Instantiate(prefab, new Vector3(element.x, element.y, 0), Quaternion.identity);
|
||||
GameObject instance = Instantiate(prefab, new Vector3(element.x, element.y, 0), Quaternion.identity);
|
||||
|
||||
Vector3 originalScale = instance.transform.localScale;
|
||||
float newScaleX = element.scaleX > 0 ? element.scaleX : originalScale.x;
|
||||
float newScaleY = element.scaleY > 0 ? element.scaleY : originalScale.y;
|
||||
|
||||
instance.transform.localScale = new Vector3(newScaleX, newScaleY, originalScale.z);
|
||||
}
|
||||
|
||||
LevelElement lastElement = current.elements[^1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user