Exemple #1
0
    private void OnGUI()
    {
        if (!isLocalPlayer)
        {
            if (hud.enabled)
            {
                hud.enabled = false;
            }
            return;
        }

        ShowDeathScreen(_healthControl.GetCurrentHealth() <= 0);

        _healthText.text = "" + _healthControl.GetCurrentHealth();
    }