32 lines
776 B
C#
32 lines
776 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class CoustomInfoItem : MonoBehaviour
|
|
{
|
|
public Button oddbutton1;
|
|
public Text oddtext;
|
|
public InputField birthinput1;
|
|
public InputField nameinput1;
|
|
public InputField typeinput1;
|
|
public InputField workorderinput1;
|
|
|
|
public void Setodd(Action action)
|
|
{
|
|
oddbutton1.onClick.AddListener(() =>
|
|
{
|
|
action?.Invoke();
|
|
});
|
|
}
|
|
public void Setcoustminfo(string str1,string str2,string str3,string str4,string str5)
|
|
{
|
|
oddtext.text = str1;
|
|
birthinput1.text = str2;
|
|
nameinput1.text = str3;
|
|
typeinput1.text = str4;
|
|
workorderinput1.text = str5;
|
|
}
|
|
}
|