Example #1
0
    void UpdateUI()
    {
        float healthPercentage = (float)stats.currentHealth / (float)stats.maxHealth;

        gfxManager.ChangeSaturation(-((float)stats.radiationLevel / 100) + 1);
        gfxManager.VignetteEffect(Mathf.Clamp01(-healthPercentage + 0.8f));

        health.text = stats.currentHealth + "";
        gamma.text  = stats.radiationLevel + "";
    }