Example #1
0
    public void SpawnBoss()
    {
        Vector3 spawnPos = new Vector3(transform.position.x, 0, Player.position.z);

        spawnPos.x += 2.75f;

        GameObject en = Instantiate(Boss, spawnPos, Quaternion.identity);

        en.transform.SetParent(CharacterSpace, false);
        Maestro.ResetLoops();
        Maestro.NewSoundtrack("Music/Boss");
        en.GetComponent <Matthew>().BossWave = gameObject.GetComponent <EventHandler>();

        currentEnemies++;
    }
    void Awake()
    {
        Maestria maestro = FindObjectOfType <Maestria>();

        maestro.NewSoundtrack("Music/Credits");
    }