using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Seatpanl : MonoBehaviour { public Image seat_panl; public Button off1_botn; public Button verify1_botn; public Button cancel1_botn; void Start() { Interactivebtn();//这几个按钮交互页面 } private void Interactivebtn() { off1_botn.onClick.AddListener(() => { seat_panl.gameObject.SetActive(false); }); verify1_botn.onClick.AddListener(() => { seat_panl.gameObject.SetActive(false); }); cancel1_botn.onClick.AddListener(() => { seat_panl.gameObject.SetActive(false); }); } // Update is called once per frame void Update() { } }