public void Update()
    {
        if (SceneManager.GetActiveScene().buildIndex == 2)
        {
            tempoRewind     = GameObject.Find("TempoRewind");
            vedacao         = GameObject.Find("Vedacao");
            vedacaoAnimacao = vedacao.GetComponent <Animator>();
            referenciaLobo  = GameObject.Find("WolfMix").GetComponent <Lobo>();
        }

        if (SceneManager.GetActiveScene().buildIndex == 3)
        {
            natura          = GameObject.Find("Natura");
            referenciaVeado = GameObject.Find("DeerMix").GetComponent <Veado>();
        }

        if (Input.GetKeyDown(KeyCode.X) || referenciaRaposa.ativarRaposa == true || referenciaLobo.ativarLobo == true || referenciaVeado.ativarVeado == true)
        {
            if (referenciaRaposa.estaLevantada == false || referenciaLobo.rodeado == true || referenciaVeado.prontoADestruir == false)
            {
                StartCoroutine("Ativar");
            }
        }

        if (SceneManager.GetActiveScene().buildIndex == 0)
        {
            Destroy(gameObject);
        }
    }
    public void Update()
    {
        if (SceneManager.GetActiveScene().buildIndex == 3)
        {
            referenciaVeado = GameObject.Find("Veado").GetComponent <Veado>();
        }

        if (referenciaVeado.prontoADestruir)
        {
            StartCoroutine("Aguarda");
        }
    }
 // Start is called before the first frame update
 void Start()
 {
     paredeAnimador = GetComponent <Animator>();
     referencia     = GameObject.Find("DeerMix").GetComponent <Veado>();
 }