private void EndGame() { delayManager.WaitForDuration(0.5f, () => { if (onGameOver != null) { onGameOver.Invoke(); } }); }