Exemplo n.º 1
0
 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>();
 }
Exemplo n.º 2
0
 private void Awake()
 {
     tipo = TipoObstaculo.Tesouro;
     spawnarTesouro_ref = GameObject.Find("Game").GetComponent <SpawnarTesouro>();
     tesouroScore_ref   = GameObject.Find("TesouroScore").GetComponent <TesouroScore>();
 }