void Start() { pollMeteoros_comuns = new GerenciadorPool(meteoroComum, 6); pollMeteoros_hard = new GerenciadorPool(meteoroHard, 4); pollMeteoros_explosivo = new GerenciadorPool(meteoroExplosivo, 4); pollMeteoros_indestruct = new GerenciadorPool(meteoroIndestruct, 4); pollMeteoros_aceleradores = new GerenciadorPool(meteoroFast, 2); pollPartMeteoroC = new GerenciadorParticula(partMeteoroComum, 4); pollPartMeteoroE = new GerenciadorParticula(partExplosao, 3); StartCoroutine(StartJogo()); score = 0; //pollMeteoros_comuns.FirstRunSpawn (); }
void Awake() { audioTiro = GetComponent <AudioSource>(); vivo = true; GameObject vida6 = GameObject.Find("heart_6"); GameObject vida5 = GameObject.Find("heart_5"); GameObject vida4 = GameObject.Find("heart_4"); GameObject vida3 = GameObject.Find("heart_3"); GameObject vida2 = GameObject.Find("heart_2"); GameObject vida1 = GameObject.Find("heart_1"); vida4.SetActive(true); gerente = new Gerenciador_UI(vida6, vida5, vida4, vida3, vida2, vida1); pollTiros = new GerenciadorPool((GameObject)Resources.Load("TiroKawaii"), 2); vida = 10; nextFire = 0.0f; balas = 50; dano = 1; speed = 8.0f; }
void Start() { pollMeteoros_comuns = new GerenciadorPool (meteoroComum, 6); pollMeteoros_hard = new GerenciadorPool (meteoroHard, 4); pollMeteoros_explosivo = new GerenciadorPool (meteoroExplosivo, 4); pollMeteoros_indestruct = new GerenciadorPool (meteoroIndestruct, 4); pollMeteoros_aceleradores = new GerenciadorPool (meteoroFast, 2); pollPartMeteoroC = new GerenciadorParticula (partMeteoroComum, 4); pollPartMeteoroE = new GerenciadorParticula (partExplosao, 3); StartCoroutine (StartJogo ()); score = 0; //pollMeteoros_comuns.FirstRunSpawn (); }