예제 #1
0
        BGClass GetBGList(BG_TYPE _type)
        {
            for (int i = 0, iMax = listBG.Count; i < iMax; i++)
            {
                if (listBG [i].type == _type)
                {
                    return(listBG [i]);
                }
            }

            return(null);
        }
예제 #2
0
    public void ChangeBGSound(BG_TYPE bgType)
    {
        if (cur_bg == bgType)
        {
            return;
        }

        switch (bgType)
        {
        case BG_TYPE.InGame:
            BGM_BossSpawned_AudioSource.Stop();
            BGM_Normal_AudioSource.Play();
            break;

        case BG_TYPE.BossSpawned:
            BGM_Normal_AudioSource.Pause();
            BGM_BossSpawned_AudioSource.Play();
            break;
        }
        cur_bg = bgType;
    }
예제 #3
0
 private void Awake()
 {
     S      = this;
     cur_bg = BG_TYPE.InGame;
 }