Esempio n. 1
0
    // BGM의 총 시간을 얻는다.
    public float    getBgmTotalTime(Sound.BGM b = Sound.BGM.NON)
    {
        if (b == Sound.BGM.NON)
        {
            b = this.current_bgm;
        }

        float time = 0.0f;

        if (b != Sound.BGM.NON)
        {
            time = this.bgmsource[(int)b].clip.length;
        }

        return(time);
    }
Esempio n. 2
0
 // BGM の再生を開始する.
 public void playBgm(Sound.BGM b)
 {
     this.current_bgm = b;
     this.bgmsource[ (int)this.current_bgm].Play();
 }
Esempio n. 3
0
 // BGM의 루프 플래그를 설정한다.
 public void             setBgmLoopPlay(Sound.BGM bgm, bool is_loop_play)
 {
     this.bgmsource[(int)bgm].loop = is_loop_play;
 }
Esempio n. 4
0
 // BGM 재생을 시작한다.
 public void playBgm(Sound.BGM b)
 {
     this.current_bgm = b;
     this.bgmsource[(int)this.current_bgm].Play();
 }