PlayerManager.AddCurrency()

public static void Player.PlayerManager.AddCurrency(int Pcurrency)

CyberPsychosis    >    Player    >    PlayerManager    >    AddCurrency

Summary

Adds currency to the player, increases the currency amount

Examples

using UnityEngine;
using Player;

public class MoneyBag : MonoBehaviour
{
    public int moneyAmount = 30;

    void OnTriggerEnter(Collider other)
    {
        if(!other.CompareTag("Player"))
            return;

        PlayerManager.AddCurrency(moneyAmount);
        Destroy(gameObject);
    }
}