예제 #1
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());
    }
예제 #2
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);
    }
예제 #3
0
 // Update is called once per frame
 void Update()
 {
     CoinsScoreText.SetText(UpdateScore.GetModifiedAvailCoins().ToString());
     DiamondsScoreText.SetText(UpdateScore.GetAvailableDiamonds().ToString());
     HeartsScoreText.SetText(UpdateScore.GetAvailableHearts().ToString());
 }
예제 #4
0
 private void Updatecoinsenemykilled(int i)
 {
     bigEnemyCoins.SetModifiedAvailCoins(bigEnemyCoins.GetModifiedAvailCoins() + i);
 }