Implement enemy spawning and following waypoints

This commit is contained in:
2024-08-12 14:21:11 +02:00
parent 5104b336ca
commit 3f715b2bbc
44 changed files with 1894 additions and 52 deletions

View File

@@ -55352,6 +55352,90 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 928661564}
m_PrefabAsset: {fileID: 0}
--- !u!1 &929169822
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 929169823}
- component: {fileID: 929169824}
- component: {fileID: 929169825}
m_Layer: 0
m_Name: Group1
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &929169823
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 929169822}
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: 1831945567}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &929169824
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 929169822}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2c9625c5b7836584397b59b00907d6dc, type: 3}
m_Name:
m_EditorClassIdentifier:
XYZConstraint: 0
waypoints:
- position: {x: 0, y: 0, z: 0}
rotation: {x: 0, y: 0, z: 0, w: 1}
xyzPosition: {x: 0, y: 0, z: 0}
xyPosition: {x: 0, y: 0, z: 0}
xzPosition: {x: 0, y: 0, z: 0}
- position: {x: 0, y: -0.31327057, z: -13.404602}
rotation: {x: 0, y: 0, z: 0, w: 1}
xyzPosition: {x: 0, y: -0.31327057, z: -13.404602}
xyPosition: {x: 0, y: -0.31327057, z: 0}
xzPosition: {x: 0, y: 0, z: -13.404602}
- position: {x: 0, y: -5.4797955, z: -24.073486}
rotation: {x: 0, y: 0, z: 0, w: 1}
xyzPosition: {x: 0, y: -5.4797955, z: -24.073486}
xyPosition: {x: 0, y: -5.4797955, z: 0}
xzPosition: {x: 0, y: 0, z: -24.073486}
- position: {x: 0, y: -5.4797955, z: -81.75009}
rotation: {x: 0, y: 0, z: 0, w: 1}
xyzPosition: {x: 0, y: -5.4797955, z: -81.75009}
xyPosition: {x: 0, y: -5.4797955, z: 0}
xzPosition: {x: 0, y: 0, z: -81.75009}
- position: {x: 0, y: -4.933069, z: -83.91342}
rotation: {x: 0, y: 0, z: 0, w: 1}
xyzPosition: {x: 0, y: -4.933069, z: -83.91342}
xyPosition: {x: 0, y: -4.933069, z: 0}
xzPosition: {x: 0, y: 0, z: -83.91342}
--- !u!114 &929169825
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 929169822}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 435f0c23cdef1c340bb304e83dc5d8a9, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &929311287
PrefabInstance:
m_ObjectHideFlags: 0
@@ -61215,6 +61299,69 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 1030334691}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1030539045
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1030539047}
- component: {fileID: 1030539046}
m_Layer: 0
m_Name: NavMesh Surface
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1030539046
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1030539045}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7a5ac11cc976e418e8d13136b07e1f52, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AgentTypeID: 0
m_CollectObjects: 0
m_Size: {x: 10, y: 10, z: 10}
m_Center: {x: 0, y: 2, z: 0}
m_LayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_UseGeometry: 1
m_DefaultArea: 0
m_GenerateLinks: 0
m_IgnoreNavMeshAgent: 1
m_IgnoreNavMeshObstacle: 1
m_OverrideTileSize: 0
m_TileSize: 256
m_OverrideVoxelSize: 0
m_VoxelSize: 0.16666667
m_MinRegionArea: 2
m_NavMeshData: {fileID: 23800000, guid: 585431ea3f8087a429faf4abd9c5a7cc, type: 2}
m_BuildHeightMesh: 0
--- !u!4 &1030539047
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1030539045}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -11.93964, y: -12.243274, z: -291.8841}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1031041917
PrefabInstance:
m_ObjectHideFlags: 0
@@ -109155,6 +109302,70 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 1831250045}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1831945566
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1831945567}
- component: {fileID: 1831945568}
m_Layer: 0
m_Name: Waypoints
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1831945567
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1831945566}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -3.548, y: -14.462, z: -257.73}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 929169823}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1831945568
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1831945566}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d24ff1cd925ce404c913998a333b4fbd, type: 3}
m_Name:
m_EditorClassIdentifier:
level: {fileID: 11400000, guid: 5c49530753c78b748aa4dfa919cca8e0, type: 2}
currentWaveIndex: -1
waveInProgress: 0
spawnEnemy:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 929169825}
m_TargetAssemblyTypeName: SpawnComponent, Assembly-CSharp
m_MethodName: Spawn
m_Mode: 0
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
waypointGroups: []
--- !u!1001 &1832625526
PrefabInstance:
m_ObjectHideFlags: 0
@@ -128197,41 +128408,6 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3716950706550494605, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
propertyPath: onTakeDamage.m_PersistentCalls.m_Calls.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3716950706550494605, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
propertyPath: onTakeDamage.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3716950706550494605, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
propertyPath: onTakeDamage.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 8713033016224012384}
- target: {fileID: 3716950706550494605, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
propertyPath: onTakeDamage.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 3716950706550494605, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
propertyPath: onTakeDamage.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: TakeDamage
objectReference: {fileID: 0}
- target: {fileID: 3716950706550494605, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
propertyPath: onTakeDamage.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: HealthComponent, Assembly-CSharp
objectReference: {fileID: 0}
- target: {fileID: 3716950706550494605, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
propertyPath: onTakeDamage.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 4528139036750849664, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
propertyPath: m_Name
@@ -128292,18 +128468,6 @@ PrefabInstance:
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 34fa8d30155a6054680ec367434ae05f, type: 3}
--- !u!114 &8713033016224012384 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2957099991542780378, guid: 34fa8d30155a6054680ec367434ae05f,
type: 3}
m_PrefabInstance: {fileID: 8713033016224012383}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5272ea2f30f4ddb488b557c786c790fa, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
@@ -128315,3 +128479,5 @@ SceneRoots:
- {fileID: 120888407}
- {fileID: 1711263980}
- {fileID: 766107838}
- {fileID: 1831945567}
- {fileID: 1030539047}