public void PerformShot() { if (gunOneGameObject.activeSelf) { gunOne.PerformShot(); } if (gunTwoGameObject.activeSelf) { gunTwo.PerformShot(); } }