public override void Spawn(DifficultyLevel difficulty, EnemyModeOptions mode) { base.Spawn(difficulty, mode); //transform.localPosition = transform.EnsurePositionInScreenBoundaries(transform.position); ShootRate = difficulty == DifficultyLevel.Easy ? 0.5f : difficulty == DifficultyLevel.Normal ? ShootRate : 3; if (mode.IsValidPathMode) { Speed *= 2; } }
// methods public virtual void Spawn(DifficultyLevel difficulty, EnemyModeOptions mode) { Debug.Log($"Spawn triggered on {name}"); ModeOpts = mode; }