public void GameOver(object sender, CaughtPlayerEventArgs args) { var text = $"Вы проиграли! Вас убил {((InteractiveObject)sender).name} - {args.Color} цвета"; _finishGameLabel.text = text; }
private void CaughPlayer(object value, CaughtPlayerEventArgs args) { Time.timeScale = 0.0f; }