Cute_demon_attacks/meng_yao/Assets/script/scene_Main/ManurePanel.cs
2024-12-25 12:02:14 +08:00

28 lines
557 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ManurePanel : MonoBehaviour
{
public GameObject[] DropArrays;
async void Start()
{
TreeInfo info = await Scene_main_jiekou.instance.TreeInfoS();
for (int i = 0; i < info.Data.Rewards.Count; i++)
{
if (info.Data.Rewards[i].Show ==1)
{
DropArrays[i].gameObject.SetActive(true);
}
}
}
// Update is called once per frame
void Update()
{
}
}