// Start is called before the first frame update
 private void Update()
 {
     //print(InRoom);
     if (InRoom)
     {
         if (Input.GetKeyDown(KeyCode.E) && player.GetComponent <PlayerAbility>().IsInCooldown == false)
         {
             lightFlicker();
             player.GetComponent <PlayerAbility>().LightCooldown();
             //Genera una alerta que los enemigos más cercanos irán a revisar
             sitesManager.LaunchEmergency(emergencypos, this);
         }
     }
 }