public void ClearWave() { foreach (var enemyEntity in _enemiesInWave) { OnEnemyEntityDestroyed?.Invoke(enemyEntity.Key, 0); } _waveColumns.Clear(); _enemiesInWave.Clear(); _enemiesAbleToShoot.Clear(); _waveVerticalPositionIndex = 0; WavePosition = new Vector3(0f, 0f, WaveVerticalPosition); WaveOffset = Vector2.zero; OnEnemiesWaveMoved?.Invoke(EntityGuid, WaveCombinedPosition); }
public void OffsetWavePosition(Vector2 offset) { WaveOffset = offset; OnEnemiesWaveMoved?.Invoke(EntityGuid, WaveCombinedPosition); }