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

@@ -0,0 +1,27 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class SpawnInformation
{
[SerializeField]
public GameObject prefab;
[SerializeField]
public Vector3 position;
[SerializeField]
public Action<GameObject> onSpawned;
public SpawnInformation(
GameObject prefab,
Vector3 position,
Action<GameObject> onSpawned)
{
this.prefab = prefab;
this.position = position;
this.onSpawned = onSpawned;
}
}