added freetime etc

This commit is contained in:
j.mei7
2022-03-06 16:04:18 +01:00
parent a95431b836
commit 386a0db5ff
39 changed files with 7480 additions and 199 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EconomyManager : MonoBehaviour
{
public static EconomyManager instance;
[SerializeField]
float money = 0.0f;
private void Awake()
{
if (instance == null)
instance = this;
}
public void AddMoney(float value) => money += value;
public float GetMoney() => money;
public string GetMoneyStr() => money.ToString() + " <20>";
public void SetMoney(float value) => money = value;
public void RemoveMone(float value) => money -= value;
}