示例#1
0
 private void Update()
 {
     if (!musicPlayed && SCR_WaitMusic.ready && SCR_PunchMusic.ready)
     {
         musicPlayed = true;
         SCR_WaitMusic.Play();
         SCR_PunchMusic.Play();
     }
 }
示例#2
0
 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();
         }
     }
 }