Cute_demon_attacks/meng_yao/Assets/script/scene_Main/ManurePanel.cs

28 lines
558 B
C#
Raw Normal View History

2024-12-20 21:03:36 +08:00
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 ==0)
{
DropArrays[i].gameObject.SetActive(false);
}
}
}
// Update is called once per frame
void Update()
{
}
}