public DropManager(SO_Drops drops, int playerDropRateLevel) { this.drops = drops; this.playerDropRateLevel = playerDropRateLevel; AEnemy.SHOT += (ctx) => { if (isDrop()) { CreateDrop(ctx); } }; }
public void Setup(SO_LevelPattern levelPattern, Transform map, SO_Drops allDrops, GameStateInfo info) { //setup components timer = new TimeManager(timerUI, levelTime); points = new PointsManager(pointsUI); spawn = new SpawnManager(this, levelPattern, map); enemy = new EnemyManager(spawn); drop = new DropManager(allDrops, info.levelDropRate); //setup player player.Setup(playerHealthUI, info); isActive = true; }