예제 #1
0
        public DropManager(SO_Drops drops, int playerDropRateLevel)
        {
            this.drops = drops;
            this.playerDropRateLevel = playerDropRateLevel;

            AEnemy.SHOT += (ctx) =>
            {
                if (isDrop())
                {
                    CreateDrop(ctx);
                }
            };
        }
예제 #2
0
        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;
        }