示例#1
0
    void CheckGameOver()
    {
        var gm = GameManager.instance;

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