3DTD/Assets/Scripts/Tower/ProjectileTower.cs

19 lines
454 B
C#

using UnityEngine;
using UnityEngine.Assertions;
[RequireComponent(typeof(ProjectileSpawner))]
public class ProjectileTower : Tower
{
[SerializeField] private ProjectilePattern[] projectileSequence;
private ProjectileSpawner projectileSpawner;
protected override void Awake()
{
base.Awake();
projectileSpawner = GetComponent<ProjectileSpawner>();
Assert.IsNotNull(projectileSpawner);
}
}