Exemple #1
0
 /// <summary>
 /// Triggers the game intensity.
 /// </summary>
 /// <param name="intensity">Intensity.</param>
 /// <param name="boolCheck">Bool check.</param>
 private void TriggerGameIntensity(GameIntensity intensity, ref bool boolCheck)
 {
     if (!boolCheck && OnGameIntensityChanged != null)
     {
         OnGameIntensityChanged(intensity);
         boolCheck = true;
     }
 }
Exemple #2
0
 private void OnMusicIntensityChanged(GameIntensity intensity)
 {
     if (intensity != GameIntensity.Mercy)
     {
         Debug.Log ("on music intensity changed: " + intensity);
         int gameIntensity = (int)intensity;
         MusicManager.current.NextPart (gameIntensity, intensity != GameIntensity.End);
     }
 }