private void Update() { if (!musicPlayed && SCR_WaitMusic.ready && SCR_PunchMusic.ready) { musicPlayed = true; SCR_WaitMusic.Play(); SCR_PunchMusic.Play(); } }
public void RefreshSoundStatus() { if (SCR_Profile.soundOn == 1) { if (musicPlayed == true) { SCR_WaitMusic.Play(); SCR_PunchMusic.Play(); } } else { if (musicPlayed == true) { SCR_WaitMusic.Stop(); SCR_PunchMusic.Stop(); } } }