public void ChangeWeapon(IRangeWeaponBase weapon, int newAmmo = -1) { if (newAmmo > 0) { ammuniton = newAmmo; } currentWeapon = weapon; }
public void ChangeWeapon_EVENT(object sender, OnWeponChangeArgs e) { currentWeapon = e.newWeapon; if (e.newAmmo > 0) { ammuniton = e.newAmmo; } }