Esempio n. 1
0
        public void ExitingRadiationZone(RadiationZone zone)
        {
            var str = zone.Strength;

            if (str == activeZoneStrength)
            {
                activeZoneStrength--;
            }
            else if (str == 7)
            {
                inHeavyRadiationZone = false;
                StopCoroutine(longGeiger);
                highLevelAudioSource.Stop();
                PostProcessControl.Instance.ExitedHeavyRadioactiveZone();
            }
        }
Esempio n. 2
0
        public void EnteringRadiationZone(RadiationZone zone)
        {
            var str = zone.Strength;

            if (str > activeZoneStrength)
            {
                if (str != 7)
                {
                    var lastStr = activeZoneStrength;
                    activeZoneStrength = str;
                    if (lastStr == 0)
                    {
                        StartCoroutine(GeigerAudio());
                    }
                }
                else if (str == 7)
                {
                    inHeavyRadiationZone = true;
                    longGeiger           = StartCoroutine(LongGeigerAudio());
                    playerHealth.EnteredHeavyRadioactiveZone();
                    PostProcessControl.Instance.EnteredHeavyRadioactiveZone();
                }
            }
        }