コード例 #1
0
 private void SetActiveCombo()
 {
     for (int i = possibleCombos.Count - 1; i >= 0; i--)
     {
         int runeMatch = 0;
         for (int j = possibleCombos[i].combo.Count - 1; j >= 0; j--)
         {
             if (runes.Contains(possibleCombos[i].combo[j]))
             {
                 runeMatch++;
             }
         }
         if (runeMatch == possibleCombos[i].combo.Count - 1)
         {
             activeCombo = possibleCombos[i];
             break;
         }
     }
 }
コード例 #2
0
 public void Initialize()
 {
     possibleCombos.Clear();
     activeCombo = new RuneSequence();
     runes.Clear();
 }