18 lines
341 B
C#
18 lines
341 B
C#
|
|
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();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|