Shegotwet/Assets/Scripts/Game/Game_Lucky_Result.cs

29 lines
788 B
C#

using GUPS.AntiCheat.Protected;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class Game_Lucky_Result : MonoBehaviour
{
public TextMeshProUGUI[] texts_money;
public void Set(Dictionary<eMoney, ProtectedInt32> amount)
{
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);
}
public void OnClick_Get()
{
gameObject.SetActive(false);
LobbyUI.Ins.m_Game_Lucky.ReleaseImage();
ADInfo.Ins.Set_Banner(true);
LobbyUI.Ins.Go_Home();
}
}