_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Battle_Royale/EggNum.cs

22 lines
473 B
C#
Raw Normal View History

2024-11-13 18:01:18 +08:00
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;
2024-11-13 21:45:48 +08:00
2024-11-13 18:01:18 +08:00
}
2024-11-13 21:45:48 +08:00
public void SetEggNumText(float start)
2024-11-13 18:01:18 +08:00
{
2024-11-13 21:45:48 +08:00
StartCoroutine(Tools.AnimateText(start, PlayerInfo.instance.Money, 0.5f,eggNumText));
2024-11-13 18:01:18 +08:00
}
}