public void collect(DyePack dye) { dye.activate(); collectedDyepacks += 1; if (weapon.GetType() == typeof(LimitedAmmoWeapon)) { ((LimitedAmmoWeapon)weapon).recharge(); } }