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