Project_WL/Assets/Script/UI/Ingame/Dungeon/Ingame_DungeonBase.cs

36 lines
829 B
C#
Raw Normal View History

using CodeStage.AntiCheat.ObscuredTypes;
using TMPro;
using UnityEngine;
public class Ingame_DungeonBase : MonoBehaviour
{
public TextMeshProUGUI[] texts_base; // 0 던전&Lv, 1 남은 시간
ObscuredFloat m_Time;
public virtual void Set(float time)
{
gameObject.SetActive(true);
m_Time = time;
m_Time.RandomizeCryptoKey();
Set_TextTime();
}
void Set_TextTime() { texts_base[1].text = Mathf.Max(0f, m_Time).ToString("F2"); }
private void Update()
{
if (m_Time > 0f)
{
m_Time -= Time.deltaTime;
Set_TextTime();
if (m_Time <= 0f)
{
// 결과 화면
}
}
}
public virtual void Set_MaxMobCount(int maxCount) { }
public virtual void Add_MobCount() { }
}