PJ/Assets/scripts/Money.cs

18 lines
341 B
C#
Raw Permalink Normal View History

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();
}
}