public class TipWindowSure : BaseButton { public override void RespondFun() { transform.parent.GetComponent().OKFunction(); Destroy(transform.parent.gameObject); } }