コード例 #1
0
    private void ScriptOnOnMoneyCollected(object sender, EventArgs e)
    {
        var rawText = "Coins: " + CoinScript.GetCoinAmount().ToString("0");

        if (text != null)
        {
            text.text = rawText;
        }
    }