//Process the aimed down location IEnumerator ProcessAim(bool hit, Enemy e) { if (hit) { e.takeHit(player.getAttack()); print("Enemy " + e.getCode() + " Health: " + e.getHealth()); if (e.getDead()) { board.removeEnemy(e); } } else { List<Enemy> enemies = board.getEnemies(); foreach(Enemy enem in enemies) { // enem.attackPlayer(player); print("Player Health: " + player.getCurrHP()); } } yield return new WaitForSeconds(10.0f / 60.0f); aiming = true; if (board.getEnemies().Count == 0) { Application.LoadLevel("GameOver"); } else { StartCoroutine("Aim"); } }