// 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); }
// BGM の再生を開始する. public void playBgm(Sound.BGM b) { this.current_bgm = b; this.bgmsource[ (int)this.current_bgm].Play(); }
// BGM의 루프 플래그를 설정한다. public void setBgmLoopPlay(Sound.BGM bgm, bool is_loop_play) { this.bgmsource[(int)bgm].loop = is_loop_play; }
// BGM 재생을 시작한다. public void playBgm(Sound.BGM b) { this.current_bgm = b; this.bgmsource[(int)this.current_bgm].Play(); }