Ejemplo n.º 1
0
    public bool checkPaymentgatewayforCodePerSecond()
    {
        if (m_purchaseGateway.GetUpdateCodePersecond() < m_gateway.GetModifiedAvailCoins())
        {
            //Total amount of COins in coins bar the
            m_gateway.SetModifiedAvailCoins(m_gateway.GetModifiedAvailCoins() - m_purchaseGateway.GetUpdateCodePersecond());
            m_damageupdate.UpdatePlayerbulletReleaseSpeed();
            return(true);
        }

        return(false);
    }
Ejemplo n.º 2
0
 private void setCodePersecondUpgrade()
 {
     playerpref.SetCodePersecond(playerpref.GetCodePerSecond() + 1);             //set COde persecode ui
     playerpref.SetUpgradeCodePerSecondCoins(playerpref.GetUpdateCodePersecond() //coins per check
                                             + m_upgradeCoins.RandomCoinsValue());
     upgradePurchaseUI();
 }
Ejemplo n.º 3
0
    void Start()
    {
        upgradeoptions = FindObjectOfType <PlayerPrefPurchase>();
        m_checkStatus  = FindObjectOfType <ButtonFireSpeed>();

        PurchaseAmmount = 3;
        SetupdateButtonText(upgradeoptions.GetUpdateCodePersecond());
    }
Ejemplo n.º 4
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());
     }
 }