No Pixel Coins
This commit is contained in:
1 parent
97b40f49e0
commit
b935aa2871
8 files changed
+13
-9
No files matched your search
@@ -54,6 +54,10 @@ public abstract class Player : MonoBehaviour
|
||||
protected void AddCoins(int amount)
|
||||
{
|
||||
coins += amount;
|
||||
if (coins < 0)
|
||||
{
|
||||
coins = 0;
|
||||
}
|
||||
textCoinsInfo.text = coins + "";
|
||||
PlayAnimation(AnimationType.Coin);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user