public void Setup()
        {
            rayoCongelante = new Armas("Rayo congelante", 100);
            torpedo        = new Armas("Torpedo", 250);
            desinflaInador = new Armas("Desinfla-Inador", 150);

            objetos = new List <string> {
                "Piramide", "Suero mutante", "La luna"
            };

            ciudad = new Ciudad(300, objetos, 150);

            armas = new List <Armas> {
                rayoCongelante, torpedo, desinflaInador
            };

            bob    = new Minions("Amarillo", 350, torpedo);
            kevin  = new Minions("Amarillo", 150, rayoCongelante);
            stuart = new Minions("Violeta", 400, desinflaInador);

            minions = new List <Minions> {
                bob, kevin, stuart
            };

            gru = new Villanos(minions, ciudad);
        }
        public void Setup()
        {
            hellFlame       = new Quirks("Hell Flame", 5000, false);
            alasRigidas     = new Quirks("Alas Rigidas", 180, true);
            duplicacion     = new Quirks("Duplicacion", 15, false);
            cremacion       = new Quirks("Cremmacion", 360, false);
            coaguloDeSangre = new Quirks("CoaguloDesangre", 80, false);

            endeavor = new Heroes(hellFlame);
            hawks    = new Heroes(alasRigidas);

            twice = new Villanos(true, true, false, duplicacion);
            dabi  = new Villanos(true, false, true, cremacion);
            stain = new Villanos(true, false, true, coaguloDeSangre);

            pandill = new List <Villanos> {
                twice, dabi
            };
            pandilla = new Pandilla(pandill);
        }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
//		FirstHeroe= Instantiate(Heroe);
        sp = GetComponent <SpriteRenderer>();


        #region ARRAY VILLANOS
        for (int i = 0; i < Malos.Length; i++)
        {
            Malos[i] = Instantiate(Villano);


            Malos[i].transform.position = PosicionM[i];

            Llegada[i] = false;


            //Xpositivo[i]=GetComponent<Spr>();

            //Xpositivo[i].flipX=false;
        }

        #endregion

        //llama a otro script
        scriptA = GameObject.Find("Heroe").GetComponent <Heroe>();

        ScriptVilanos = GameObject.Find("Villano").GetComponent <Villanos>();

        #region ARRAY ALMAS
        for (int a = 0; a < Almas1.Length; a++)
        {
            Almas1[a] = Instantiate(Almas);


            Almas1[a].transform.position = PosicionA[a];
        }

        #endregion
    }