Initial Commit
This commit is contained in:
commit
ee5c2f922d
2255 changed files with 547750 additions and 0 deletions
22
Assets/Scripts/Spawner.cs
Normal file
22
Assets/Scripts/Spawner.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue