2025-12-16 06:25:18 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using GUPS.AntiCheat.Protected;
|
|
|
|
|
|
using TMPro;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class MiniGameResult : MonoBehaviour
|
|
|
|
|
|
{
|
2025-12-16 07:43:10 +00:00
|
|
|
|
public TextMeshProUGUI[] texts; // 0 <20>ִ<EFBFBD> <20><EFBFBD>, 1 <20><EFBFBD> <20><><EFBFBD>ʽ<EFBFBD>, 2 ȹ<><C8B9> ä<><C3A4> <20><><EFBFBD><EFBFBD>, 3 ȹ<><C8B9> <20><>í <20><><EFBFBD><EFBFBD>, 4 <20>߰<EFBFBD> ȹ<>淮, 5 ȹ<><C8B9> <20><>Ʈ <20><><EFBFBD><EFBFBD>
|
2025-12-16 06:25:18 +00:00
|
|
|
|
|
|
|
|
|
|
ProtectedInt32 m_coinAmount, m_rubyAmount;
|
|
|
|
|
|
Action act_off;
|
|
|
|
|
|
|
|
|
|
|
|
public void Set(long coinAmount, int bonuscoin, int rubyAmount, int maxCombo, int maxFeverStreak,
|
|
|
|
|
|
int missionSuccessPhotoID, Action _off)
|
|
|
|
|
|
{
|
2025-12-16 23:56:46 +00:00
|
|
|
|
LobbyUI.Ins.MiniGameResult();
|
|
|
|
|
|
|
2025-12-16 06:25:18 +00:00
|
|
|
|
gameObject.SetActive(true);
|
|
|
|
|
|
act_off = _off;
|
|
|
|
|
|
|
|
|
|
|
|
m_coinAmount = (int)coinAmount;
|
|
|
|
|
|
m_coinAmount.Obfuscate();
|
|
|
|
|
|
m_rubyAmount = rubyAmount;
|
|
|
|
|
|
m_rubyAmount.Obfuscate();
|
|
|
|
|
|
|
|
|
|
|
|
texts[0].text = maxCombo.ToString();
|
|
|
|
|
|
texts[1].text = ((int)(maxCombo / 10f)).ToString() + "%";
|
2025-12-16 07:43:10 +00:00
|
|
|
|
//texts[2].text = "";
|
|
|
|
|
|
texts[5].text = rubyAmount.ToString();
|
2025-12-16 06:25:18 +00:00
|
|
|
|
texts[3].text = coinAmount.ToString();
|
|
|
|
|
|
texts[4].text = $"+{bonuscoin}";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void OnClick_AD()
|
|
|
|
|
|
{
|
|
|
|
|
|
ADInfo.Ins.Show_AD(false, () =>
|
|
|
|
|
|
{
|
|
|
|
|
|
SaveMgr.Ins.Add_Money(eMoney.Gacha, m_coinAmount);
|
2025-12-16 07:43:10 +00:00
|
|
|
|
SaveMgr.Ins.Add_Money(eMoney.AlbumOpen, m_rubyAmount);
|
2025-12-16 06:25:18 +00:00
|
|
|
|
SaveMgr.Ins.Save();
|
|
|
|
|
|
|
|
|
|
|
|
gameObject.SetActive(false);
|
|
|
|
|
|
act_off();
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
public void OnClick_Close()
|
|
|
|
|
|
{
|
|
|
|
|
|
gameObject.SetActive(false);
|
|
|
|
|
|
act_off();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|