Esempio n. 1
0
    void atacarJugador(GameObject jug)
    {
        if (Time.time - ultimoDaño < tiempoParaDañar)
        {
            return;
        }
        ultimoDaño = Time.time;
        Vida cont = jug.GetComponent <Vida>();

        cont.aplicarDaño(daño);
    }