mirror of
https://github.com/DerTyp7/grow-ai-unity.git
synced 2025-11-03 14:29:00 +01:00
money UI
This commit is contained in:
@@ -11,11 +11,13 @@ public class EconomyManager : MonoBehaviour
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user