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