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 onSpawned; public SpawnInformation( GameObject prefab, Vector3 position, Action onSpawned) { this.prefab = prefab; this.position = position; this.onSpawned = onSpawned; } }