Skip to content
Snippets Groups Projects
Verified Commit 051286e5 authored by Adrian Paschkowski's avatar Adrian Paschkowski :thinking:
Browse files

RoundCounter: Don't increment round count on loose

parent c14da89e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment