void CheckGameOver() { var gm = GameManager.instance; if (gm) { if (gm.IsGameOver) { if (!playerUI) { playerUI = GameManager.instance.SpawnedPlayer.UI; if (playerUI) { playerUI.SetSystemCursor(true, false); } } } } }