Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / Scripts / Systems / Currency / CurrencyController.cs
@Rackday Rackday on 18 Aug 329 bytes Project Added
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");
    }
}