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

RoundController: Lock came user control during anim

parent 66a72627
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,7 @@ public class RoundController : MonoBehaviour, IFighterCallback
inRoundEndAnimation = true;
var targetGameSpeed = 0.2f;
SetCurrentGameSpeed(targetGameSpeed);
cameraController.SetUserControlEnabled(false);
cameraController.AnimateToPosition(fighter.transform.position + new Vector3(0f, 0.75f), 1.5f, 0.125f * targetGameSpeed);
Invoke(nameof(StopRoundAfterDeath), targetGameSpeed * restartDelayAfterLastFighterDeath);
}
......@@ -119,6 +120,7 @@ public class RoundController : MonoBehaviour, IFighterCallback
{
inRoundEndAnimation = false;
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