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

28 lines
730 B
C#
Raw Permalink Normal View History

2025-07-22 00:24:36 +00:00
using System.Collections.Generic;
using TMPro;
2025-08-01 05:15:56 +00:00
using UnityEngine;
2025-07-22 00:24:36 +00:00
public class DungeonResultBase : BackKeyAdd
{
2025-07-22 00:24:36 +00:00
public TextMeshProUGUI[] texts; // 0 성공 or 실패, 1 난이도, 2 처치 수
public ObtainItemCard[] rewards;
2025-08-01 05:15:56 +00:00
public GameObject[] gos; // 0 확인 버튼
2025-07-22 00:24:36 +00:00
protected List<ItemSimpleData> list_reward = new List<ItemSimpleData>
{ new ItemSimpleData{ itemid = 1 }, new ItemSimpleData{ itemid = 2 } };
2025-01-26 03:52:03 +00:00
public virtual void Set(bool? win)
{
base.Set();
2025-08-01 05:15:56 +00:00
gos[0].SetActive(false);
}
public override void OnClick_Back()
{
2025-08-01 05:15:56 +00:00
if (gos[0].activeInHierarchy)
{
base.OnClick_Back();
InGameInfo.Ins.Return_To_Lobby();
}
}
}