29 lines
988 B
C#
29 lines
988 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class Ingame_DungeonBase : MonoBehaviour
|
|
{
|
|
public TextMeshProUGUI[] texts_base; // 0 던전&Lv, 1 남은 시간
|
|
public MoneyForm[] rewards;
|
|
|
|
public virtual void Set(float time)
|
|
{
|
|
gameObject.SetActive(true);
|
|
Set_DungeonNameLv();
|
|
Set_TextTime(time);
|
|
DungeonInfo.Ins.m_Time = time;
|
|
DungeonInfo.Ins.act_Time = Set_TextTime;
|
|
// TODO 정인호 : 올바른 보상으로 변경 필요
|
|
rewards[0].Set(1, 0);
|
|
rewards[1].Set(2, 0);
|
|
}
|
|
public void Set_DungeonNameLv()
|
|
{
|
|
var mapData = table_battlemapconfig.Ins.Get_Data(MyValue.MyChoiceMapData.n_MapID);
|
|
texts_base[0].text = $"{mapData.Get_Name()} Lv {MyValue.MyChoiceMapData.n_DungeonLv}";
|
|
}
|
|
void Set_TextTime(float time) { texts_base[1].text = Mathf.Max(0f, time).ToString("F2"); }
|
|
|
|
public virtual void Set_MaxMobCount(int maxCount) { }
|
|
public virtual void Add_MobCount(int mobid) { }
|
|
} |