From 051286e5bb22ce11e063ca7bd55273b837df0973 Mon Sep 17 00:00:00 2001 From: Adrian Paschkowski <git@wasdennnoch.me> Date: Fri, 16 Apr 2021 16:32:43 +0200 Subject: [PATCH] RoundCounter: Don't increment round count on loose --- Assets/Scripts/RoundController.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/RoundController.cs b/Assets/Scripts/RoundController.cs index f523841..586eba9 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); -- GitLab