Esempio n. 1
0
 public void ConfirmUseMedkit()
 {
     if (numberOfMedkits > 0 && ship.health.value < ship.fullHealth && (Time.time - startTimeOfPressingButton) < StaticVariables.infoWindowFadeDelay)
     {
         confirmPickupUsePanel.Confirm(myConfirmAction1, useMedkitButton.transform);
     }
 }
Esempio n. 2
0
 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);
     }
 }