Exemplo n.º 1
0
    public void wprowadzanie_zmian(scr_jednostka cel)
    {
        Debug.Log("akcja" + gameObject);
        cel.zycie_aktualne = cel.zycie_aktualne - moc;

        if (cel.zycie_aktualne <= 0)
        {
            cel.zycie_aktualne = 0;
            cel.czy_zyje       = 0;
        }

        PG.akcja = PG.akcja + 1;
        Debug.Log(gameObject + "zaatakowano postac nr " + cel + "     W  cel.zycie_aktualne " + cel.zycie_aktualne + "    PG.akcja " + PG.akcja);
    }
Exemplo n.º 2
0
    public void wprowadzanie_zmian(scr_jednostka cel)
    {
        //wprowadzenie zmian
        cel.zycie_aktualne = cel.zycie_aktualne - (kierunek * moc);

        if (atak_ogluszajacy == 1)
        {
            cel.czy_ogłuszony = 1;
        }

        if (cel.zycie_aktualne <= 0)
        {
            cel.zycie_aktualne = 0;
            cel.czy_zyje       = 0;
        }



        PG.czy_przyciski_aktywne = 0;
        PG.czy_wybrano_cel       = 0;
        PG.akcja = PG.akcja + 1;
        Debug.Log(gameObject + "zaatakowano postac nr " + cel + "      B cel.zycie_aktualne " + cel.zycie_aktualne + "    PG.akcja " + PG.akcja);
    }