Esempio n. 1
0
 /// <summary>
 /// React to \ref RoundManager.Events.BossSpawnRequestEvent "BossSpawnRequestEvent".
 /// Place your logic to spawn a boss here.
 /// </summary>
 /// <param name="e">Event.</param>
 private void OnBossSpawnRequest(BossSpawnRequestEvent e)
 {
 }
        private void OnSpawnBoss(BossSpawnRequestEvent e)
        {
            var boss = SpawnObject(e.ObjectPrefab, Level.EnemySpawnTiles);

            RoundEvents.Instance.Raise(new BossSpawnedEvent(RoundManager.Instance.CurrentRound, boss));
        }