public void EndGame(bool win) { CameraFollower.Instance.Center(); CameraFollower.Instance.SetTarget(null); EnemySpawner.Instance.Spawning = false; EnemySpawner.Instance.Reset(); game = false; controllableTank.Move(0); controllableTank.Rotate(0); data.RegisterSession(session); endGameScreen.SetData(win, session.score, session.kills, data.Sessions, data.BestScore, data.MaxKills); ShowScreen(endGameScreen); Sound.MusicManager.Play(win ? Sound.MusicType.Win : Sound.MusicType.Lose); }