Example #1
0
    IEnumerator WaitAndLoadPlz(float WAIT)
    {
        yield return(new WaitForSeconds(WAIT));

        LevelLoader.ChangeLevel();
        SfxHandler sfx = SfxHandler.SfxIns;

        if (sfx != null)
        {
            sfx.changeSpeed(0.6f, "bg_s");
            sfx.StopSound("bg_s");
        }
        DeactivateMe(this.gameObject);
    }