31 lines
694 B
C#
31 lines
694 B
C#
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>().text = info.Data.Rewards[i].reward+"g";
|
|
DropArrays[i].gameObject.SetActive(true);
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|