Exemple #1
0
 /// <summary>
 /// Starts executing a tune attack.
 /// </summary>
 /// <param name="tuneIndex">The index of the tune attack.</param>
 /// <param name="overrideCurrent">Whether to override the current action if already executing one.</param>
 /// <param name="rhythmType">The rhythm to play the tune at.</param>
 internal void StartTune(int tuneIndex, bool overrideCurrent = false, LevelManager.RhythmType rhythmType = LevelManager.RhythmType.None)
 {
     if (overrideCurrent || !isPlayingTune)
     {
         currentTune     = tunes[tuneIndex];
         this.rhythmType = rhythmType;
     }
 }
Exemple #2
0
 /// <summary>
 /// Starts executing a tune attack.
 /// </summary>
 /// <param name="tuneIndex">The index of the tune attack.</param>
 /// <param name="rhythmType">The rhythm to play the tune at.</param>
 public void StartTune(int tuneIndex, LevelManager.RhythmType rhythmType = LevelManager.RhythmType.None)
 {
     currentTune     = tunes[tuneIndex];
     this.rhythmType = rhythmType;
 }