예제 #1
0
    void SpawnEnemy()
    {
        GameTile spawnPoint = gameBoard.GetSpawnPoint(Random.Range(0, gameBoard.spawnPointsCount));
        Enemy    enemy      = enemyFactory.Get();

        enemyCollection.AddEnemy(enemy);
        enemy.SpawnOn(spawnPoint);
    }