// 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>(); //} }
// Start is called before the first frame update void Awake() { habilidadesGeraisPlayer_ref = GetComponent <HabilidadesGeraisPlayer>(); }