Exemplo n.º 1
0
    public void AddCountAmmo(int count)
    {
        if (count == 0)
        {
            return;
        }
        int prev = ammo.CountAmmo;

        ammo.AddCountAmmo(count);
        if (prev != ammo.CountAmmo)
        {
            CallEventChangeAmmo();
        }
    }