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(); Assert.IsNotNull(projectileSpawner); } }