Implement enemy spawning and following waypoints
This commit is contained in:
27
Assets/Scripts/Data/SpawnInformation.cs
Normal file
27
Assets/Scripts/Data/SpawnInformation.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user