FastArena/Assets/Scenes/SpawnPoint.cs
2025-07-09 21:15:31 +03:00

19 lines
428 B
C#

using UnityEngine;
namespace FastArena
{
public class SpawnPoint : MonoBehaviour
{
public bool Repeatable;
public int Cooldown;
public int Amount;
public Spawnable Entity;
public void SpawnEntities()
{
var t = transform;
for (int i = 0; i < Amount; i++)
Entity.Spawn(t.position, t.rotation);
}
}
}