Example #1
0
    private bool isFoilHatEquipped()
    {
        if (equipmentManager.GetEquippedItemName(2) == "Heavenly Hat of Foil")
        {
            LensDistortion lensDistortion;
            Vignette       vignette;
            Bloom          bloom;
            m_PostProcessVolume = GetComponent <PostProcessVolume>();
            if (m_PostProcessVolume.profile.TryGetSettings(out lensDistortion))
            {
                lensDistortion.intensity.value = 0f;
            }
            if (m_PostProcessVolume.profile.TryGetSettings(out vignette))
            {
                vignette.intensity.value = .5f;
                vignette.color.value     = Color.cyan;
            }
            if (m_PostProcessVolume.profile.TryGetSettings(out bloom))
            {
                bloom.intensity.value = 20;
            }

            Debug.Log("[PPC]: FoilHat Equipped");

            // healing = true;
            // StartCoroutine(Heal());
            return(true);
        }
        else
        {
            return(false);
        }
    }