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() { tipo = TipoObstaculo.Tesouro; spawnarTesouro_ref = GameObject.Find("Game").GetComponent <SpawnarTesouro>(); tesouroScore_ref = GameObject.Find("TesouroScore").GetComponent <TesouroScore>(); }