_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/GLScripts/LotteryPanel.cs

44 lines
840 B
C#
Raw Normal View History

2024-12-12 21:02:09 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LotteryPanel : Base
{
public GameObject AniPanel;
2024-12-13 15:35:22 +08:00
2024-12-12 21:02:09 +08:00
2024-12-13 15:35:22 +08:00
public MotherFuck532 MotherFuck532;
public Lottery532 lottery532;
2024-12-13 16:41:55 +08:00
public MotherFuck533 MotherFuck533;
public bool Judge533;
2024-12-13 15:35:22 +08:00
private void Start()
{
GetRewardInfo532();
2024-12-13 16:41:55 +08:00
2024-12-13 15:35:22 +08:00
}
2024-12-12 21:02:09 +08:00
public void ShowAni(int id)
{
2024-12-13 16:41:55 +08:00
GetRewardInfo533(id);
if (Judge533)
{
GameObject ani = Instantiate(AniPanel, transform);
ani.GetComponent<Anilottery>().OpenBox(id);
}
2024-12-12 21:02:09 +08:00
}
2024-12-13 15:35:22 +08:00
public async void GetRewardInfo532()
{
lottery532 = await MotherFuck532.Result();
}
2024-12-13 16:41:55 +08:00
public async void GetRewardInfo533(int id)
{
Judge533 = await MotherFuck533.Result(id);
}
2024-12-13 15:35:22 +08:00
2024-12-12 21:02:09 +08:00
}