Files
dungeons/Assets/Scripts/Data/SpawnInformation.cs

28 lines
544 B
C#

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;
}
}