예제 #1
0
        public void Break()
        {
            Weapon.OnBeat(false, Combo);

            Combo = 0;
            ComboScale.Set(Combo);
            MusicVolume.Set(0.1f);
        }
예제 #2
0
 public void Pause()
 {
     if (!Paused)
     {
         MusicVolume.Set(0f);
         Music.Pause();
         Paused = true;
         Visibility.Set(0f);
     }
 }
예제 #3
0
        public void Beat()
        {
            Combo++;
            ComboScale.Set(Combo);

            BeatScale = new InterpolatedFloat(1f, 0.25f);
            BeatScale.Set(0f);
            Weapon.OnBeat(true, Combo);
            MusicVolume.Set(0.1f + Utils.Clamp(Combo, 0, 10) * 0.09f);
        }