using System.Collections; using System.Collections.Generic; using UnityEngine; public class CurrencyController : MonoBehaviour { public void AddCurrency(int value) { if (value >= 0) PlayerStatus.currency += value; else Debug.LogError("Value needs to be superior to 0"); } }