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() { } }