Beispiel #1
0
    // Start is called before the first frame update
    void Awake()
    {
        //if (piranha.gameObject.activeInHierarchy==true)
        //{
        habilidadesGeraisPlayer_ref = GameObject.Find("Piranha").GetComponent <HabilidadesGeraisPlayer>();
        //}



        //{
        //habilidadesGeraisPlayer_ref = GameObject.Find("Piranha").GetComponent<HabilidadesGeraisPlayer>();
        //}
        //if (cascudo.gameObject.activeInHierarchy == true)
        //{
        //habilidadesGeraisPlayer_ref = GameObject.Find("Cascudo").GetComponent<HabilidadesGeraisPlayer>();
        //}
    }
Beispiel #2
0
    // Start is called before the first frame update

    void Awake()
    {
        habilidadesGeraisPlayer_ref = GetComponent <HabilidadesGeraisPlayer>();
    }