From 7ab5c74152dccb842c145bddffba43277f2650c9 Mon Sep 17 00:00:00 2001
From: Adrian Paschkowski <git@wasdennnoch.me>
Date: Thu, 15 Apr 2021 19:26:18 +0200
Subject: [PATCH] RoundController: Move cam to initial position on restart

---
 Assets/Scripts/RoundController.cs | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Assets/Scripts/RoundController.cs b/Assets/Scripts/RoundController.cs
index 205a286..3872101 100644
--- a/Assets/Scripts/RoundController.cs
+++ b/Assets/Scripts/RoundController.cs
@@ -99,8 +99,14 @@ public class RoundController : MonoBehaviour, IFighterCallback
             var targetGameSpeed = 0.2f;
             SetGameSpeed(targetGameSpeed);
             cameraController.AnimateToPosition(fighter.transform.position + new Vector3(0f, 0.75f), 1.5f, 0.125f * targetGameSpeed);
-            Invoke(nameof(StopRound), targetGameSpeed * restartDelayAfterLastFighterDeath);
+            Invoke(nameof(StopRoundAfterDeath), targetGameSpeed * restartDelayAfterLastFighterDeath);
         }
     }
 
+    void StopRoundAfterDeath()
+    {
+        StopRound();
+        cameraController.AnimateToPosition(new Vector3(0, 0, 0), 5f, 0.15f);
+    }
+
 }
-- 
GitLab