Exemplo n.º 1
0
        private void PlayerHitFlash()
        {
            if (playerHit == false)
            {
                currentAmbientFade = PlayerHitAmbientFade;
                currentAmbientFade.Reset();
                currentAmbientFade.SetCurrentColor(ambientLight);
                currentAmbientFade.SetTargetColor(NightmareAmbientFade.CurrentColor);
            }

            playerHit = true;
        }
Exemplo n.º 2
0
 private void DarkenScreen()
 {
     if (playerNightmareHit == false && playerHit == false)
     {
         currentAmbientFade = NightmareAmbientFade;
         currentAmbientFade.Reset();
         currentAmbientFade.SetCurrentColor(ambientLight);
         currentAmbientFade.SetTargetColor(levelAmbient);
     }
     playerNightmareHit = true;
 }