using System.Collections; using System.Collections.Generic; using BITKit; using UnityEngine; namespace BITFALL.Player.Inventory { public class WorldMoney : MonoBehaviour,IDescription { public static void Create(int money) { var go = new GameObject("WorldMoney"); var wm = go.AddComponent(); wm.Money = money; } [SerializeField] private int money; public int Money { get=>money; set=>OnSetMoney(money = value); } private void OnSetMoney(int value) { money = value; } public string Name => $"Money:{money}"; } }