using System.Collections; using System.Collections.Generic; using UnityEngine; public class InputWindowSure : BaseButton { private string text = ""; public override void RespondFun() { text = transform.parent.Find("InputField").GetComponent().text; transform.parent.GetComponent().OKFunction(text); Destroy(transform.parent.gameObject); } }