2D-Platformer/Assets/Scripts/Spawner.cs
2022-02-12 12:53:50 +02:00

22 lines
No EOL
423 B
C#

using UnityEngine;
namespace DefaultNamespace
{
public class Spawner : MonoBehaviour
{
public EnemyPrefab EnemyPrefab;
public int MaxSpawnInterval;
public int MaxSpawns;
public int MaxTotalSpawns;
public float SpawnRadius;
public int CurrentCount { get; set; }
public float SpawnTimer { get; set; }
private void OnDrawGizmos()
{
Gizmos.DrawWireSphere(transform.position, SpawnRadius);
}
}
}