예제 #1
0
    public void load_enemies()
    {
        if (sceneTransition)
        {
            startingEnemies = sceneTransition.Enemies;
        }

        for (int i = 0; i < startingEnemies.Count; i++)
        {
            var loarded_enemy = Instantiate(startingEnemies[i], new Vector3(0, 0, 0), Quaternion.identity) as GameObject;
            enemies.Add(loarded_enemy.GetComponent <EnemyStats>());
            loarded_enemy.GetComponent <CharacterAnimation>().Turn(true);
        }
        theatre.SetEnemies(enemies);
        Set_enemies_positions();
    }