Exemplo n.º 1
0
    /// <summary> If hit by a bullet </summary>
    /// <param name="hit"> The bullet </param>
    public virtual void Hit(Missile hit)
    {
        float dammage = hit.Dammage(Friendly);

        HP -= dammage;
        hit.Destroy();
        hit.Explode();
    }