1100904 Text自動填字
by 黃國哲 2021-09-04 16:01:29, 回應(0), 人氣(626)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class list1100904go : MonoBehaviour
{
public item itemdata;
public Text title;
public Text title2;
public Text decr;
public InputField itemname; //提取名字為 itemname.text
private GameObject testname;
public void searchbtn()
{
title.text = itemname.text;
decr.text = itemdata.itemInfo;
//testname = GameObject.Find(itemname.text);
}
public void getnamebtn()
{
{ GameObject.Find(itemname.text).GetComponent<InventoryItemDisplay>().enabled = true; }
}
}
回應