using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Money : MonoBehaviour { public Text text; public int IntMoney; private void FixedUpdate() { IntMoney = PlayerPrefs.GetInt("Moneys"); text.text = IntMoney.ToString(); } }