2025-09-14 19:25:46 +00:00
|
|
|
using TMPro;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Game_Mini_Result : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public TextMeshProUGUI[] texts; // 0 시간, 1 하트, 2 챗 코인, 3 가챠 코인
|
|
|
|
|
|
2025-09-15 01:05:59 +00:00
|
|
|
public void Set(float playtime)
|
2025-09-14 19:25:46 +00:00
|
|
|
{
|
|
|
|
|
gameObject.SetActive(true);
|
2025-09-19 20:05:08 +00:00
|
|
|
SoundInfo.Ins.Play_OneShot(eSound.s005_MiniGameResult);
|
2025-09-14 19:25:46 +00:00
|
|
|
|
2025-09-15 01:05:59 +00:00
|
|
|
texts[0].text = DSUtil.Get_TimeText_MS(playtime);
|
|
|
|
|
|
2025-09-15 00:23:06 +00:00
|
|
|
var dic = LobbyUI.Ins.m_Game_Mini.Get_ResultMoney();
|
2025-09-15 00:52:36 +00:00
|
|
|
texts[1].text = dic[eMiniGameObtacleType.AlbumOpen].ToString();
|
|
|
|
|
texts[2].text = dic[eMiniGameObtacleType.ChatCoin].ToString();
|
|
|
|
|
texts[3].text = dic[eMiniGameObtacleType.GachaCoin].ToString();
|
2025-09-14 19:25:46 +00:00
|
|
|
|
2025-09-15 00:23:06 +00:00
|
|
|
// 아이템 한 번 바로 지급
|
2025-10-01 19:12:49 +00:00
|
|
|
LobbyUI.Ins.MiniGameResult();
|
2025-09-15 00:23:06 +00:00
|
|
|
LobbyUI.Ins.m_Game_Mini.Save_GameResult();
|
2025-09-14 19:25:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnClick_AD()
|
|
|
|
|
{
|
2025-09-15 21:41:59 +00:00
|
|
|
ADInfo.Ins.Show_AD(true, () =>
|
2025-09-15 00:52:36 +00:00
|
|
|
{
|
|
|
|
|
LobbyUI.Ins.m_Game_Mini.Save_GameResult();
|
|
|
|
|
LobbyUI.Ins.m_Game_Mini.OnClick_Exit();
|
2025-09-15 21:41:59 +00:00
|
|
|
});
|
2025-09-14 19:25:46 +00:00
|
|
|
}
|
|
|
|
|
}
|