Exemple #1
0
 public bool ChekpaymentGatewyforCodeReliability()
 {
     if (m_purchaseGateway.GetUpdateCodeReliablility() < m_gateway.GetModifiedAvailCoins())
     {
         //Total amount of COins in coins bar the
         m_gateway.SetModifiedAvailCoins(m_gateway.GetModifiedAvailCoins() - m_purchaseGateway.GetUpdateCodeReliablility());
         m_damageupdate.PlayerUpdateDamagePower(updateDamageEffectvalue);
         return(true);
     }
     return(false);
 }
Exemple #2
0
 public void setUpgradebuttontext()
 {
     if (m_checkStatus.IsCodePerSecond)
     {
         SetupdateButtonText(upgradeoptions.GetUpdateCodePersecond());
     }
     else if (m_checkStatus.isCodeReliability)
     {
         SetupdateButtonText(upgradeoptions.GetUpdateCodeReliablility());
     }
     else if (m_checkStatus.iscoinsPurchase)
     {
         SetupdateButtonText(upgradeoptions.GetUpdatedCoinsPercentage());
     }
 }
 private void setCodeReliabilityUpdate()
 {
     playerpref.SetCodeReliability(playerpref.GetCodeReliability() + IncreasCodeReliability);
     playerpref.SetUpgradeCodeReliabilityCoins(playerpref.GetUpdateCodeReliablility() + m_upgradeCoins.RandomCoinsValue());
     upgradePurchaseUI();
 }