public static void GameOver() { Analytics.CustomEvent("GameOver", new Dictionary <string, object> { { "Score", i.scoreCtrl.GetCurrentScore() }, { "Speed", DifficultyManager.GetCurrentMovementSpeed() }, { "SpawnRate", DifficultyManager.GetCurrentSpawnRate() }, { "ShapeAmmount", ShapeController.GetShapeAmmount() } }); i.OnGameEnd?.Invoke(); }