Beispiel #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);
    }
Beispiel #2
0
    public void updateCoinsScore()
    {
        m_coinsupdated.SetTempAvailCoins(m_coinsupdated.GetTempAvailableCoins() + (m_coinsupdated.GetcoinValue()));

        float m_coinsArchived = m_coinsupdated.GetTempAvailableCoins();

        m_coinsupdated.SetModifiedAvailCoins((int)Mathf.Ceil(m_coinsArchived));

        Debug.Log("Coins value is--->" + m_coinsupdated.GetModifiedAvailCoins());
    }
 private void Updatecoinsenemykilled(int i)
 {
     bigEnemyCoins.SetModifiedAvailCoins(bigEnemyCoins.GetModifiedAvailCoins() + i);
 }