public void ConfirmUseMedkit() { if (numberOfMedkits > 0 && ship.health.value < ship.fullHealth && (Time.time - startTimeOfPressingButton) < StaticVariables.infoWindowFadeDelay) { confirmPickupUsePanel.Confirm(myConfirmAction1, useMedkitButton.transform); } }
public void ConfirmUpgradeCycloneLightningBolt() { if (creditManager.credit >= upgradeCost && upgradeable && (Time.time - startTimeOfPressingButton) < StaticVariables.infoWindowFadeDelay) { confirmUpgradePanel.Confirm(myConfirmAction1, this.transform, true); } else { confirmUpgradePanel.Confirm(myConfirmAction1, this.transform, false); } }