Esempio n. 1
0
    private void CrearBoss()
    {
        GameObject ClonBoss    = Instantiate(boss, transform.position, Quaternion.identity);
        IA_Boss    propiedades = ClonBoss.GetComponent <IA_Boss>();

        propiedades.Velocidad = Random.Range(1, 3);
        propiedades.Cadencia  = Random.Range(75, 95);
        ArmaBoss armaboss = ClonBoss.GetComponent <ArmaBoss>();

        armaboss.Disparar1 = true;
    }
Esempio n. 2
0
 void Start()
 {
     Instantiate(Shield, new Vector3(this.gameObject.transform.position.x, this.gameObject.transform.position.y - 3.35f, this.gameObject.transform.position.z), Quaternion.Euler(0f, 0f, 180f));
     TempoNextShield  += Time.time + 30;
     TempoShieldAtivo += Time.time + 10;
     TempoNextSpawn    = Time.time;
     ShieldAtivo       = true;
     hudVida           = GameObject.FindGameObjectWithTag("SliderVidaBoss").GetComponent <Slider>();
     armaBoss          = GameObject.FindGameObjectWithTag("ArmaBoss").GetComponent <ArmaBoss>();
     vida              = vidamax;
     hudVida.maxValue  = vidamax;
     tipo              = 0;
     valorVirar        = 0.1f;
 }