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

RoundController: Move cam to initial position on restart

parent 0c955de5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
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