void fireWeapon(GameObject weapon) { if (weapon != null) { IGun firingWeapon = weapon.GetComponent <IGun>(); setShift(firingWeapon); firingWeapon.fire(); } }