コード例 #1
0
 private void EvaluateCombat(HexCell cell)
 {
     if (level.GetCellType(cell) == "fire")
     {
         return;
     }
     foreach (EnemyController ec in TurnManager.enemyControllers)
     {
         if (ec.GetTargetCell().Equals(cell))
         {
             if (ec.strength > strength)
             {
                 Debug.Log("Lose, back to overworld");
             }
             else
             {
                 won     = true;
                 winTime = Time.time;
                 LevelGrid.CompleteLevel(level.levelName);
                 SoundManager.soundManager.PlaySolvedSound();
             }
         }
     }
 }