📅  最后修改于: 2022-03-11 14:56:16.604000             🧑  作者: Mango
public string theName;
public GameObject inputField;
public GameObject textDisplay;
public void StoreName()
{
theName = inputField.GetComponent().text;
textDisplay.GetComponent().text = theName;
}