Скрипт генерации карты и зоны тригера

Закончен скрипт генерации карты по готовым префабам, закончен скрипт тригерной зоны
This commit is contained in:
Dizel
2024-12-11 20:57:06 +03:00
parent 3d15c0dc4c
commit 6f4c1454cb
16 changed files with 201 additions and 511 deletions

View File

@ -222,7 +222,7 @@ Transform:
m_GameObject: {fileID: 678815814}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.75, y: 0.49500084, z: -15}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -373,67 +373,6 @@ MonoBehaviour:
m_LightCookieSize: {x: 1, y: 1}
m_LightCookieOffset: {x: 0, y: 0}
m_SoftShadowQuality: 0
--- !u!1001 &842499528
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalPosition.x
value: -0.545702
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalPosition.z
value: 0.79941034
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4758555326874066992, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8202227058476080034, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_Name
value: Floor (Black)
objectReference: {fileID: 0}
- target: {fileID: 8202227058476080034, guid: d113347864294f441883149abd377a24, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d113347864294f441883149abd377a24, type: 3}
--- !u!1 &961775090
GameObject:
m_ObjectHideFlags: 0
@ -552,7 +491,7 @@ GameObject:
- component: {fileID: 1034189938}
m_Layer: 0
m_Name: Tile Manager
m_TagString: Untagged
m_TagString: Tile Manager
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
@ -569,11 +508,11 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 673f57172fdd6084f8c03e4433c6967c, type: 3}
m_Name:
m_EditorClassIdentifier:
_NumTile: 6
CurrentTile: 0
_NumTile: 30
_DistanceTiles: 20
_TilesPref:
_TilePrefs:
- {fileID: 8202227058476080034, guid: d113347864294f441883149abd377a24, type: 3}
_Tiles: []
--- !u!4 &1034189939
Transform:
m_ObjectHideFlags: 0
@ -733,6 +672,5 @@ SceneRoots:
- {fileID: 1544359499}
- {fileID: 691500690}
- {fileID: 678815818}
- {fileID: 842499528}
- {fileID: 961775094}
- {fileID: 1034189939}