コード例 #1
0
ファイル: Clicker.cs プロジェクト: minghinshi/Coin_Clicker_2
    public void Click(double overflowBonus)
    {
        if (options.clickParticles)
        {
            SpawnCoinParticle(overflowBonus);
        }
        if (options.sfx)
        {
            PlayClickSoundEffect();
        }

        player.Coins += (player.CoinsPerClick + player.BonusCoinsPerClick) * overflowBonus;
        if (tierHandler.tier >= 1)
        {
            player.Clickpoints += player.ClickpointsPerClick * overflowBonus;
        }
        if (tierHandler.tier >= 2)
        {
            player.Experience += player.ExperiencePerClick * overflowBonus;
        }

        player.UpdateDisplays();
        multi.UpdateDisplays();
        autoclicker.UpdateDisplays();
    }