コード例 #1
0
    //Called when a coin is collected by the player
    public void CoinCollected(Vector2 contactPoint)
    {
        collectedCoins++;
        guiManager.UpdateCoins(collectedCoins);

        levelGenerator.AddCoinParticle(contactPoint);
        missionManager.CoinEvent(collectedCoins);
    }