using System.Collections; using System.Collections.Generic; using UnityEngine; public class LotteryPanel : Base { public GameObject AniPanel; public MotherFuck532 MotherFuck532; public Lottery532 lottery532; public MotherFuck533 MotherFuck533; public bool Judge533; private void Start() { GetRewardInfo532(); } public void ShowAni(int id) { GetRewardInfo533(id); if (Judge533) { GameObject ani = Instantiate(AniPanel, transform); ani.GetComponent().OpenBox(id); } } public async void GetRewardInfo532() { lottery532 = await MotherFuck532.Result(); } public async void GetRewardInfo533(int id) { Judge533 = await MotherFuck533.Result(id); } }