diff --git a/Assets/Scripts/RoundController.cs b/Assets/Scripts/RoundController.cs index f52384105e580ead68bb085b2e3de2c2680745f8..586eba9d5763b1792188b2944de67caefb62c995 100644 --- a/Assets/Scripts/RoundController.cs +++ b/Assets/Scripts/RoundController.cs @@ -101,7 +101,11 @@ public class RoundController : MonoBehaviour, IFighterCallback public void OnFighterDeath(Fighter fighter) { var isAntiPlayer = fighter.CompareTag("AntiPlayer"); - if (!isAntiPlayer) + if (isAntiPlayer) + { + roundCounter++; + } + else { aliveEnemiesCount--; } @@ -120,7 +124,6 @@ public class RoundController : MonoBehaviour, IFighterCallback void StopRoundAfterDeath() { inRoundEndAnimation = false; - roundCounter++; StopRound(); cameraController.SetUserControlEnabled(true); cameraController.AnimateToPosition(new Vector3(0, 0, 0), 5f, 0.15f);