Shegotwet/Assets/Scripts/Game/Game_Lucky_Result.cs

29 lines
788 B
C#
Raw Normal View History

using GUPS.AntiCheat.Protected;
using System.Collections.Generic;
2025-09-13 02:32:17 +00:00
using TMPro;
using UnityEngine;
public class Game_Lucky_Result : MonoBehaviour
{
public TextMeshProUGUI[] texts_money;
2025-09-13 02:32:17 +00:00
public void Set(Dictionary<eMoney, ProtectedInt32> amount)
2025-09-13 02:32:17 +00:00
{
gameObject.SetActive(true);
texts_money[0].text = amount[eMoney.AlbumOpen].ToString();
texts_money[1].text = amount[eMoney.Chat].ToString();
texts_money[2].text = amount[eMoney.Gacha].ToString();
foreach (var item in amount)
SaveMgr.Ins.Add_Money(item.Key, item.Value);
2025-09-13 02:32:17 +00:00
}
public void OnClick_Get()
{
gameObject.SetActive(false);
2025-09-13 04:33:26 +00:00
LobbyUI.Ins.m_Game_Lucky.ReleaseImage();
2025-09-18 06:55:43 +00:00
ADInfo.Ins.Set_Banner(true);
2025-09-19 19:31:06 +00:00
LobbyUI.Ins.Go_Home();
2025-09-13 02:32:17 +00:00
}
}