using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; 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].transform.Find("Text").GetComponent().text = info.Data.Rewards[i].reward+"g"; DropArrays[i].gameObject.SetActive(true); } } } // Update is called once per frame void Update() { } }