Esempio n. 1
0
    void SpawnEnemy(GameObject enemy)
    {
        GameObject spawned_enemy = Instantiate(enemy, spawn_point.position, spawn_point.rotation);

        enemy_scr = spawned_enemy.GetComponent <enemy>();
        enemy_scr.IncreaseHealth(wave_number);
    }