public void Start()
 {
     maosterial.DisableKeyword("_EMISSION");
     maosterial.SetColor("_EmissionColor", Color.black);
     braco      = this.transform.parent.gameObject;
     animaBraco = braco.GetComponent <Animator>();
     referencia = GameObject.Find("FadaHolder").GetComponent <FadaHolder>();
 }
Exemple #2
0
    // Start is called before the first frame update
    public void Start()
    {
        referencia = GameObject.Find("FadaHolder").GetComponent <FadaHolder>();
        labirinto  = GameObject.Find("Jogo");
        jogador    = GameObject.FindGameObjectWithTag("Player").transform;

        prontoADestruir = false;

        gazeAware   = GetComponent <GazeAware>(); //AQUI
        ativarVeado = false;
    }
    // Start is called before the first frame update
    void Start()
    {
        referencia     = GameObject.Find("FadaHolder").GetComponent <FadaHolder>();
        raposaAnimador = GetComponent <Animator>();
        estaLevantada  = false;

        //jogador = GameObject.Find("Cylinder").transform;
        jogador = GameObject.FindGameObjectWithTag("Player").transform;

        ativarRaposa = false;
    }
    public void Start()
    {
        rodeado = true;

        referencia = GameObject.Find("FadaHolder").GetComponent <FadaHolder>();

        if (rodeado)
        {
            loboAnimador = GetComponent <Animator>();
            esperar      = uivo.length + 8f;
            InvokeRepeating("TocaUivar", 8f, esperar);
        }

        jogador = GameObject.FindGameObjectWithTag("Player").transform;

        gazeAware  = GetComponent <GazeAware>(); //AQUI
        ativarLobo = false;                      //AQUI
    }