// Use this for initialization
    void Start()
    {
        isFlare = false;
        winPanel.SetActive(false);
        lostPanel.SetActive(false);
        GuideText.SetActive(false);

        Cursor.visible   = false;
        Cursor.lockState = CursorLockMode.Locked;
        eye.SetActive(true);
        helicam.SetActive(false);
    }
    // Update is called once per frame
    void Update()
    {
        if (isFlare)
        {
            GameObject[] zombies = GameObject.FindGameObjectsWithTag("Enemy");
            foreach (var zombie in zombies)
            {
                Debug.Log("zombie see flare");
                zombie.SendMessage("SeeFlare");
            }
        }

        if (win)
        {
            Debug.Log(win);
            eye.SetActive(false);
            helicam.SetActive(true);
            Destroy(GameObject.FindGameObjectWithTag("Player"));
        }

        if (Input.GetKeyDown(KeyCode.C))
        {
            if (!GuideText.activeInHierarchy)
            {
                GuideText.SetActive(true);
                Time.timeScale = 0;
            }
            else
            {
                GuideText.SetActive(false);
                Time.timeScale = 1;
            }

            if (Input.GetKeyDown(KeyCode.N))
            {
                QuitGame();
            }
        }
    }