private void Awake() { barraDeVida_ref = GameObject.Find("Game").GetComponent <BarraDeVida>(); spawnInimigo_ref = GetComponent <SpawnInimigo>(); spawnarAlga_ref = GetComponent <SpawnarAlga>(); spawnarGhost_ref = GetComponent <SpawnarGhost>(); spawnarTesouro_ref = GetComponent <SpawnarTesouro>(); }
private void Awake() { spawnInimigo_ref = GetComponent <SpawnInimigo>(); barraDeVida_ref = GameObject.Find("Game").GetComponent <BarraDeVida>(); //habilidadesGeraisInimigo_ref = GameObject.Find("Tubarao").GetComponent<HabilidadesGeraisInimigo>(); }