21 lines
424 B
C#
21 lines
424 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class EggNum : MonoBehaviour
|
|
{
|
|
public Text eggNumText;
|
|
public static EggNum instance;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
instance = this;
|
|
}
|
|
public void SetEggNumText()
|
|
{
|
|
eggNumText.text = PlayerInfo.instance.Money.ToString();
|
|
}
|
|
|
|
}
|