예제 #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>();
 }
예제 #2
0
 private void Awake()
 {
     spawnInimigo_ref = GetComponent <SpawnInimigo>();
     barraDeVida_ref  = GameObject.Find("Game").GetComponent <BarraDeVida>();
     //habilidadesGeraisInimigo_ref = GameObject.Find("Tubarao").GetComponent<HabilidadesGeraisInimigo>();
 }